Fix minor bug: number of pids must be initialised by '0'.
This commit is contained in:
parent
89502d3ad1
commit
e416ed6f1c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user