Skip to content

Commit

Permalink
chore: ignore taskkill errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jschfflr committed Oct 4, 2021
1 parent 50ab1fd commit fa8aacc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node/BrowserRunner.ts
Expand Up @@ -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.
Expand Down

0 comments on commit fa8aacc

Please sign in to comment.