jilles fba61ef227 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-06-02 08:47:26 +00:00
2012-02-11 20:43:01 +00:00
2012-04-18 07:02:53 +00:00
2012-09-28 12:29:25 +00:00
2012-09-06 19:24:48 +00:00
2012-05-11 20:06:46 +00:00
2012-02-25 14:31:25 +00:00
2012-06-21 21:47:08 +00:00
2012-09-23 18:32:03 +00:00
2012-08-15 20:02:54 +00:00