Integrated: 8364312: debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file
Guanqiang Han
ghan at openjdk.org
Wed Aug 6 15:40:16 UTC 2025
On Thu, 31 Jul 2025 05:49:18 GMT, Guanqiang Han <ghan at openjdk.org> wrote:
> 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().
This pull request has now been integrated.
Changeset: f95af744
Author: Guanqiang Han <ghan at openjdk.org>
Committer: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f95af744b07a9ec87e2507b3d584cbcddc827bbd
Stats: 65 lines in 1 file changed: 22 ins; 21 del; 22 mod
8364312: debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file
Reviewed-by: cjplummer, kevinw
-------------
PR: https://git.openjdk.org/jdk/pull/26568
More information about the serviceability-dev
mailing list