[Lldb-commits] [PATCH] Apply SOCK_CLOEXEC flag to socket API functions in order to avoid handle leakage to a forked child process.

Ed Maste emaste at freebsd.org
Mon Nov 10 15:53:38 PST 2014


On 10 November 2014 18:49, Zachary Turner <zturner at google.com> wrote:
> Some google searching suggests that SOCK_CLOEXEC and FD_CLOEXEC are linux specific flags.  If this is correct, can we put them behind #ifdef _LINUX instead of #ifdef SOCK_CLOEXEC?  It makes it more clear to the reader when the alternate codepath will actually execute.

We have them on current FreeBSD versions too.




More information about the lldb-commits mailing list