Skip to content

Commit

Permalink
Actually kill the process
Browse files Browse the repository at this point in the history
go run runs it as a subprocess so
  • Loading branch information
infogulch committed Oct 16, 2023
1 parent fcdf7c9 commit 11b9766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion integration/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11b9766

Please sign in to comment.