RFR: 8364312: debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file [v3]
Guanqiang Han
ghan at openjdk.org
Tue Aug 5 10:32:42 UTC 2025
> Create a new function that marks all file descriptors found in /proc/self/fd with the FD_CLOEXEC flag to ensure they are automatically closed upon execution of a new program via exec().
Guanqiang Han has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
- a small fix
- Merge remote-tracking branch 'upstream/master' into 8364312
- Update exec_md.c
correct an compilation error
- 8364312: debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file
Create a new function that marks all file descriptors found in /proc/self/fd with the FD_CLOEXEC flag to ensure they are automatically closed upon execution of a new program via exec().
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26568/files
- new: https://git.openjdk.org/jdk/pull/26568/files/2e94cb44..cd14e763
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26568&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26568&range=01-02
Stats: 10540 lines in 250 files changed: 6867 ins; 3006 del; 667 mod
Patch: https://git.openjdk.org/jdk/pull/26568.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26568/head:pull/26568
PR: https://git.openjdk.org/jdk/pull/26568
More information about the serviceability-dev
mailing list