Browse Source

Inherited FDs should not accidentally be inherited by child processes

This makes test-child-process-detached pass on Windows.
v0.9.1-release
Bert Belder 13 years ago
parent
commit
09be360a0f
  1. 3
      src/node.cc

3
src/node.cc

@ -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

Loading…
Cancel
Save