Skip to content

Commit

Permalink
chore: ignore taskkill errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jschfflr authored and OrKoN committed Feb 15, 2022
1 parent 3ff6e72 commit 8b09fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/BrowserRunner.ts
Expand Up @@ -186,7 +186,7 @@ export class BrowserRunner {
if (this.proc && this.proc.pid && pidExists(this.proc.pid)) {
try {
if (process.platform === 'win32') {
childProcess.execSync(`taskkill /pid ${this.proc.pid} /T /F`);
childProcess.exec(`taskkill /pid ${this.proc.pid} /T /F`, () => {});
} else {
// on linux the process group can be killed with the group id prefixed with
// a minus sign. The process group id is the group leader's pid.
Expand Down

0 comments on commit 8b09fcc

Please sign in to comment.