fix(Launcher): do not detach child process on windows (#2081)

Fixes #2053.
This commit is contained in:
Andrey Lushnikov 2018-03-15 11:50:16 -07:00 committed by GitHub
parent afcc74e7c7
commit c082a82547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,10 @@ class Launcher {
chromeExecutable,
chromeArguments,
{
detached: true,
// On non-windows platforms, `detached: false` makes child process a leader of a new
// process group, making it possible to kill child process tree with `.kill(-pid)` command.
// @see https://nodejs.org/api/child_process.html#child_process_options_detached
detached: process.platform !== 'win32',
env: options.env || process.env,
stdio
}