Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit f29e6b2

Browse files
codebyterenornagon
authored andcommitted
fix: don't create console window when creating process
This commit prevents console windows from being spawned when creating processes to better align with what Windows users expect and should be removed when upgrading to a version that includes nodejs/node#21316
1 parent c95620f commit f29e6b2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

deps/uv/src/win/process.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,9 @@ int uv_spawn(uv_loop_t* loop,
10991099
process_flags |= DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP;
11001100
}
11011101

1102+
/* Don't create console window. */
1103+
process_flags |= CREATE_NO_WINDOW;
1104+
11021105
if (!CreateProcessW(application_path,
11031106
arguments,
11041107
NULL,

0 commit comments

Comments
 (0)