Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: joyent/libuv
base: 86b5c1ef1cbd
Choose a base ref
...
head repository: joyent/libuv
compare: e9f75fb146c8
Choose a head ref
  • 1 commit
  • 3 files changed
  • 1 contributor

Commits on Nov 15, 2013

  1. 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.
    bnoordhuis committed Nov 15, 2013
    Copy the full SHA
    e9f75fb View commit details
    Browse the repository at this point in the history