vscode/extensions/vscode-test-resolver/scripts/terminateProcess.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
174 B
Bash
Raw Normal View History

2024-11-15 06:29:18 +00:00
#!/bin/bash
terminateTree() {
for cpid in $(/usr/bin/pgrep -P $1); do
terminateTree $cpid
done
kill -9 $1 > /dev/null 2>&1
}
for pid in $*; do
terminateTree $pid
done