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

Commit 09be360

Browse files
committed
Inherited FDs should not accidentally be inherited by child processes
This makes test-child-process-detached pass on Windows.
1 parent 37d75ba commit 09be360

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/node.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,6 +2702,9 @@ char** Init(int argc, char *argv[]) {
27022702
// Initialize prog_start_time to get relative uptime.
27032703
uv_uptime(&prog_start_time);
27042704

2705+
// Make inherited handles noninheritable.
2706+
uv_disable_stdio_inheritance();
2707+
27052708
// Parse a few arguments which are specific to Node.
27062709
node::ParseArgs(argc, argv);
27072710
// Parse the rest of the args (up to the 'option_end_index' (where '--' was

0 commit comments

Comments
 (0)