From fa8aaccb14082161a1b80962f5753e5cc02e2a9a Mon Sep 17 00:00:00 2001 From: Jan Scheffler Date: Tue, 21 Sep 2021 12:59:36 +0200 Subject: [PATCH] chore: ignore taskkill errors --- src/node/BrowserRunner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/BrowserRunner.ts b/src/node/BrowserRunner.ts index 0230c4518e30b..1ab533153014b 100644 --- a/src/node/BrowserRunner.ts +++ b/src/node/BrowserRunner.ts @@ -156,7 +156,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.