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

Zachary Turner zturner at google.com
Mon Nov 10 15:49:26 PST 2014

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.  

That said, I'm not sure that it's useful to have this be the default behavior.  Dont' most people on posix platforms *expect* handles to be inherited by forked processes?


More information about the lldb-commits mailing list