Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: don't close the fds we just setup
If a descriptor was being copied to an fd that *was not its current value*, it should get closed after being copied. But the existing code would close the fd, even when it no longer referred to the original descriptor. Don't do this, only close fds that are not in the desired range for the child process. See nodejs/node#862
- Loading branch information