Repository URL to install this package:
|
Version:
1.76.2-1678817801 ▾
|
code
/
usr
/
share
/
code
/
resources
/
app
/
extensions
/
ms-vscode.js-debug
/
src
/
terminateProcess.sh
|
|---|
#!/bin/bash
ROOT_PID=$1
SIGNAL=$2
terminateTree() {
for cpid in $(/usr/bin/pgrep -P $1); do
terminateTree $cpid
done
kill -$SIGNAL $1 > /dev/null 2>&1
}
terminateTree $ROOT_PID