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