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
..
2012-09-06 20:59:49 +00:00
2012-08-15 03:09:00 +00:00
2012-05-08 18:56:21 +00:00
2012-05-12 07:52:45 +00:00
2012-09-05 21:41:05 +00:00
2012-03-28 19:20:28 +00:00
2012-03-06 03:30:09 +00:00
2012-05-13 14:16:04 +00:00
2012-09-27 19:10:25 +00:00
2012-09-14 21:28:56 +00:00
2012-09-19 19:22:24 +00:00