libuv/src
Ben Noordhuis e9f75fb146 unix: set close-on-exec flag on received fds
Set the close-on-exec flag on file descriptors that we've received with
recvmsg() so we don't leak them when calling fork() afterwards.

On Linux, we use the MSG_CMSG_CLOEXEC flag when supported (2.6.23 and
up.)

On older Linux versions and other platforms, we walk the received file
descriptors and set the close-on-exec flag for each fd manually.  That
won't entirely avoid race conditions when other threads call fork() or
clone() but at least we're less likely to leak file descriptors now.
2013-11-15 23:13:06 +01:00
..
unix unix: set close-on-exec flag on received fds 2013-11-15 23:13:06 +01:00
win windows: use _snwprintf(), not swprintf() 2013-11-08 12:39:59 +01:00
fs-poll.c unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
inet.c unix, windows: return error codes directly 2013-07-07 09:51:00 +02:00
queue.h queue: strengthen type checks 2013-11-02 13:55:57 +01:00
uv-common.c include: remove uv_strlcat() and uv_strlcpy() 2013-11-03 03:50:23 +01:00
uv-common.h include: uv_udp_send{6} now takes sockaddr_in* 2013-09-01 08:02:20 +02:00
version.c Now working on v0.10.20 2013-11-12 10:54:29 -08:00