jThis is a follow up to JDK-8324668.
Try to make this code as robust as possible:
#1 - what to do with errors from "close()"?
#2 - do we even want to bother with the fallback code if opendir() fails, or should opendir() be expected to never fail and therefore any failure should be fatal.
#3 - would “fcntl(d, F_SETFD, 1)” be of use here?
Try to make this code as robust as possible:
#1 - what to do with errors from "close()"?
#2 - do we even want to bother with the fallback code if opendir() fails, or should opendir() be expected to never fail and therefore any failure should be fatal.
#3 - would “fcntl(d, F_SETFD, 1)” be of use here?
- duplicates
-
JDK-8364312 debug agent should set FD_CLOEXEC flag rather than explicitly closing every open file
-
- Resolved
-
- relates to
-
JDK-8324668 JDWP process management needs more efficient file descriptor handling
-
- Resolved
-