fix check for shred PIDs

This commit is contained in:
Iris Lightshard 2020-01-15 12:39:52 -05:00
parent 32943a97ba
commit c193f91037

View file

@ -44,7 +44,9 @@ done
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