Skip to content

Commit

Permalink
Make sure the console window is hidden when starting a child process …
Browse files Browse the repository at this point in the history
…on Windows (Fixes issue #6 (#7))
  • Loading branch information
Alzathar authored and DaanDeMeyer committed Nov 1, 2018
1 parent 8abf2fc commit c90924e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/reproc/windows/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ REPROC_ERROR process_create(wchar_t *command_line, wchar_t *working_directory,

LPSTARTUPINFOW startup_info_address = &startup_info;
#endif

startup_info_address->dwFlags |= STARTF_USESHOWWINDOW;
startup_info_address->wShowWindow = SW_HIDE;

PROCESS_INFORMATION info;

// Child processes inherit error mode of their parents. To avoid child
Expand Down

0 comments on commit c90924e

Please sign in to comment.