Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Inherited FDs should not accidentally be inherited by child processes
Browse files Browse the repository at this point in the history
This makes test-child-process-detached pass on Windows.
  • Loading branch information
piscisaureus committed Jun 13, 2012
1 parent 37d75ba commit 09be360
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/node.cc
Expand Up @@ -2702,6 +2702,9 @@ char** Init(int argc, char *argv[]) {
// Initialize prog_start_time to get relative uptime.
uv_uptime(&prog_start_time);

// Make inherited handles noninheritable.
uv_disable_stdio_inheritance();

// Parse a few arguments which are specific to Node.
node::ParseArgs(argc, argv);
// Parse the rest of the args (up to the 'option_end_index' (where '--' was
Expand Down

0 comments on commit 09be360

Please sign in to comment.