Skip to content

Commit

Permalink
Fix child processes not being killed properly (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
vpyatnitskiy authored Mar 11, 2024
1 parent e89cb78 commit 5cef963
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/subspawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function killSubProcesses(owner: string) {
} else if (process.platform === "darwin") {
execSync(`kill -9 ${c.pid}`);
} else {
process.kill(c.pid);
process.kill(-c.pid);
}
}
} catch {
Expand Down

0 comments on commit 5cef963

Please sign in to comment.