From 11b976697febec1f04d2c54f49d40d99ee9944f8 Mon Sep 17 00:00:00 2001 From: infogulch Date: Mon, 16 Oct 2023 00:32:57 -0500 Subject: [PATCH] Actually kill the process go run runs it as a subprocess so --- integration/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/run.sh b/integration/run.sh index 2ec4e40..1db73a5 100755 --- a/integration/run.sh +++ b/integration/run.sh @@ -7,7 +7,7 @@ go run ../bin -log -4 > xtemplate.log & # exec go run in the backgr PID=$! # grab the pid exit() { # define exit handler sleep 0.1s # wait for stdout to flush - kill $PID # kill the process + pkill -P $PID # kill the process popd > /dev/null # cd back to wherever the script was invoked from } trap exit EXIT # register exit handler