+1 I think this makes a lot of sense
> On 10. Jul 2018, at 17:54, Alan Bateman <alan.bate...@oracle.com> wrote: > > On 10/07/2018 17:40, Martin Buchholz wrote: >> I agree with this approach - it parallels the efforts made with O_CLOEXEC in >> past years. >> >> According to >> https://www.freebsd.org/cgi/man.cgi?query=socket&sektion=2 >> <https://www.freebsd.org/cgi/man.cgi?query=socket&sektion=2> >> SOCK_CLOEXEC is also available on freebsd. >> > This is something that doesn't come up too often, I assume because most > developers using ProcessBuilder/Process rather than invoking fork from native > code. > > If we are going to tackle this issue then it will require changes in several > places, changing PlainSocketImpl.c is just one of several. > > -Alan