From ce342cd3681bfb5efd6c875b04ba3a2c53afc5a8 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Fri, 17 Jan 2020 05:16:19 -0500 Subject: [PATCH] supress output of kill for PID query --- shredder.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shredder.sh b/shredder.sh index 78ba718..86023d0 100644 --- a/shredder.sh +++ b/shredder.sh @@ -44,7 +44,7 @@ done while true; do for child in ${children}; do - if kill -0 ${child}; then + if kill -0 ${child} >/dev/null 2>&1; then activeChildren="${activeChildren} ${child}" fi done