summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-06-14 01:28:51 +0200
committerBert Belder <bertbelder@gmail.com>2012-06-14 01:28:51 +0200
commit09be360a0fee2c7619bae8c4248f9ed3d79d1b30 (patch)
treeb964eb6001374870531d6f81ef0574d86e2df289 /src
parent37d75ba241780c9199f601dd4c70713d190c68e6 (diff)
downloadnode-09be360a0fee2c7619bae8c4248f9ed3d79d1b30.tar.gz
Inherited FDs should not accidentally be inherited by child processes
This makes test-child-process-detached pass on Windows.
Diffstat (limited to 'src')
-rw-r--r--src/node.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/node.cc b/src/node.cc
index d478f06e7..f2d134f01 100644
--- a/src/node.cc
+++ b/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