Skip to content

Commit

Permalink
kill pids without errors
Browse files Browse the repository at this point in the history
  • Loading branch information
swelljoe committed Jul 12, 2017
1 parent 9ff6dc2 commit 4a6f7b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion slib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4a6f7b8

Please sign in to comment.