Question about libjava/childproc.c

Alan Bateman Alan.Bateman at
Wed Sep 5 16:06:05 UTC 2018

On 05/09/2018 16:45, Thomas Stüfe wrote:
> :
> My question would be, could we not - instead of straight away closing
> the file descriptor - set them all to FD_CLOEXEC instead?
This comes up periodically but even if we do that then we still need 
this code to catch the places where FD_CLOEXEC isn't set.

Note that there a thread net-dev trying to do this for sockets. The 
scenario there seems to be someone calling fork/exec directory and not 
using ProcessBuilder. The patch under discussion is not complete but it 


More information about the core-libs-dev mailing list