Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

unix: always set CLOEXEC flag for child process stdio FDs

  • Loading branch information...
piscisaureus committed Jun 14, 2012
1 parent 2c983fb commit 5d5688f24188b8e34e8e82ab41fbb4cdb3f3e305
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/unix/process.c
@@ -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);
}
}

0 comments on commit 5d5688f

Please sign in to comment.
You can’t perform that action at this time.