[PATCH] SOCK_CLOEXEC for opening sockets
Alan Bateman
Alan.Bateman at oracle.com
Tue Jul 10 16:54:26 UTC 2018
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
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20180710/2ea7358b/attachment-0001.html>
More information about the net-dev
mailing list