[PATCH] SOCK_CLOEXEC for opening sockets
Norman Maurer
norman.maurer at googlemail.com
Tue Jul 10 16:55:18 UTC 2018
+1 I think this makes a lot of sense
> On 10. Jul 2018, at 17:54, Alan Bateman <Alan.Bateman at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20180710/5a8db2da/attachment.html>
More information about the net-dev
mailing list