freebsd-dev/lib/libc/yp
Jilles Tjoelker 05eb11cbc4 libc: Use O_CLOEXEC for various internal file descriptors.
This fixes a race condition where another thread may fork() before CLOEXEC
is set, unintentionally passing the descriptor to the child process.

This commit only adds O_CLOEXEC flags to open() or openat() calls where no
fcntl(fd, F_SETFD, FD_CLOEXEC) follows. The separate fcntl() call still
leaves a race window so it should be fixed later.
2012-09-29 11:54:34 +00:00
..
Makefile.inc Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
Symbol.map
xdryp.c Handle failures to malloc memory to hold key or val copies. 2011-12-23 01:56:25 +00:00
yplib.c libc: Use O_CLOEXEC for various internal file descriptors. 2012-09-29 11:54:34 +00:00