1. 08 Nov, 2009 1 commit
    • Rémi Denis-Courmont's avatar
      Linux: create sockets with close-on-exec flag in thread-safe manner · 303fbc7c
      Rémi Denis-Courmont authored
      There is a window of opportunity to leak file descriptors between
      their creation and the fcntl(FD_CLOEXEC) call. If another thread forks
      during this window, the descriptors will not have a the close-on-exec
      flag, and get leaked after exec(). This is a limitation of POSIX.
      
      While we're using the Linux-specific SOCK_CLOEXEC, we might as well
      use SOCK_NONBLOCK, and spare ourselves the three fcntl() calls.
      303fbc7c
  2. 07 Nov, 2009 10 commits
  3. 06 Nov, 2009 12 commits
  4. 05 Nov, 2009 5 commits
  5. 04 Nov, 2009 4 commits
  6. 03 Nov, 2009 8 commits