process cleanup attempt

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2021-12-11 15:23:02 -07:00
parent a05861581c
commit 08f2113882
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,8 @@
set -e
set -x
trap 'kill -- -$PGID' EXIT
trap 'kill -- -$(ps -o pgid= $PID | grep -o '[0-9]*')' EXIT
#trap 'kill -- -$PGID' EXIT
#trap 'sudo kill -- -$PGID' EXIT
#trap 'sudo kill $(jobs -p)' EXIT
#trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT