reap child processes

This commit is contained in:
Brian Duggan 2018-06-18 11:25:48 -04:00
parent aae68dd4c8
commit ca1c53edfd

View File

@ -1,5 +1,13 @@
#!/bin/bash
reap() {
kill -TERM $child
sleep 0.1
exit
}
trap reap TERM INT
# If a command fails, exit the script
set -e