From f03dabbeb0130338a383ca7a252d6b14d1b41220 Mon Sep 17 00:00:00 2001 From: "Dave Musicant (home machine)" Date: Sun, 4 Dec 2022 10:04:34 -0600 Subject: [PATCH] fswatch kill in --- othertests/startup-shutdown.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/othertests/startup-shutdown.bash b/othertests/startup-shutdown.bash index 97f2e82..c960d75 100755 --- a/othertests/startup-shutdown.bash +++ b/othertests/startup-shutdown.bash @@ -30,7 +30,9 @@ teardown() { echo "Process id again $GITWATCH_PID" >&3 # Make sure gitwatch script gets killed if script stopped background # Must kill the entire tree of processes generated - pkill -9 -P "$GITWATCH_PID" + pkill -15 -P "$GITWATCH_PID" + # Also make sure to kill fswatch if on Mac + killall fswatch echo '# Teardown complete' >&3 }