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

Commit 72d15bd

Browse files
codebytereMarshallOfSound
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 8581b84 commit 72d15bd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

deps/uv/src/win/process.c

+3
Original file line numberDiff line numberDiff line change
@@ -1094,6 +1094,9 @@ int uv_spawn(uv_loop_t* loop,
10941094
process_flags |= DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP;
10951095
}
10961096

1097+
/* Don't create console window. */
1098+
process_flags |= CREATE_NO_WINDOW;
1099+
10971100
if (!CreateProcessW(application_path,
10981101
arguments,
10991102
NULL,

0 commit comments

Comments
 (0)