fix check for shred PIDs
Derek Stevens drkste@zoho.com
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
shredder.sh
→
shredder.sh
@@ -44,7 +44,9 @@ # if so, everything is OK!
while true; do for child in ${children}; do - activeChildren="${activeChildren} $(ps T | grep $child | awk '{print $1}')" + if kill -0 ${child}; then + activeChildren="${activeChildren} ${child}" + fi done # if no active children, trim the whitespace so we can check for empty string