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