We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f106cc9 commit 5f1e153Copy full SHA for 5f1e153
1 file changed
client/src/node/processes.ts
@@ -29,6 +29,9 @@ export function terminate(process: ChildProcess & { pid: number }, cwd?: string)
29
} else if (isLinux || isMacintosh) {
30
try {
31
const pid = process.pid.toString();
32
+ if (!/^\d+$/.test(pid)) {
33
+ return false;
34
+ }
35
const script = `
36
terminateTree() {
37
for cpid in $(pgrep -P "$1"); do
0 commit comments