From 4a6f7b85e2157e09159e65a740f92b3d56ef20cf Mon Sep 17 00:00:00 2001 From: Joe Cooper Date: Wed, 12 Jul 2017 18:34:00 -0500 Subject: [PATCH] kill pids without errors --- slib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/slib.sh b/slib.sh index 7d4d249..a00875a 100644 --- a/slib.sh +++ b/slib.sh @@ -12,7 +12,9 @@ cleanup () { # Make super duper sure we reap all the spinners # This is ridiculous, and I still don't know why spinners stick around. if [ ! -z "$allpids" ]; then - kill "$allpids" &>/dev/null + for pid in $allpids; do + kill "$pid" 1>/dev/null 2>&1 + done fi } trap cleanup INT EXIT QUIT TERM