[testresolver] kill server on shutdown

This commit is contained in:
Martin Aeschlimann
2019-06-14 12:06:59 +02:00
parent bfa6a69e6b
commit 8c4a49f8b9
3 changed files with 53 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
#!/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