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
helps.
-Alan