diff --git a/remove_zombies_user.sh b/remove_zombies_user.sh index 37ab892..76979b0 100755 --- a/remove_zombies_user.sh +++ b/remove_zombies_user.sh @@ -233,7 +233,7 @@ then if [[ "$?" -eq 0 ]];then - declare -i count=1 + declare -i count=0 for _PID in $ZOMBIE_PIDS ; do if [[ $count -eq 1 ]]; then KILLED_PIDS="$_PID"