mirror of
https://github.com/danog/code-server.git
synced 2024-12-15 10:47:12 +01:00
12 lines
174 B
Bash
Executable File
12 lines
174 B
Bash
Executable File
#!/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 |