Runtime.exec() could fork/exec the external process between the time a file descriptor is opened and and when close-on-exec is set on it.
-- Summary: Race condition between setting close-on-exec and Runtime.exec() Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcj AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: daney at gcc dot gnu dot org GCC host triplet: *-*-* http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31228