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

Commit

Permalink
unix: always set CLOEXEC flag for child process stdio FDs
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Jun 14, 2012
1 parent 2c983fb commit 5d5688f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/unix/process.c
Expand Up @@ -237,6 +237,8 @@ static void uv__process_child_init(uv_process_options_t options,
if (i != use_fd) {
dup2(use_fd, i);
close(use_fd);
} else {
uv__cloexec(use_fd, 0);
}
}

Expand Down

0 comments on commit 5d5688f

Please sign in to comment.