diff --git a/lib/Launcher.js b/lib/Launcher.js index c78e025b725..bbc94b35b1e 100644 --- a/lib/Launcher.js +++ b/lib/Launcher.js @@ -78,7 +78,7 @@ class Launcher { if (Array.isArray(options.args)) chromeArguments.push(...options.args); - const chromeProcess = childProcess.spawn(chromeExecutable, chromeArguments, {}); + const chromeProcess = childProcess.spawn(chromeExecutable, chromeArguments, {detached: true}); if (options.dumpio) { chromeProcess.stdout.pipe(process.stdout); chromeProcess.stderr.pipe(process.stderr); @@ -107,7 +107,7 @@ class Launcher { if (process.platform === 'win32') childProcess.execSync(`taskkill /pid ${chromeProcess.pid} /T /F`); else - chromeProcess.kill('SIGKILL'); + process.kill(-chromeProcess.pid); } }