diff options
-rw-r--r-- | rc.d/init.d/functions | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rc.d/init.d/functions b/rc.d/init.d/functions index 98738193..04ce2a71 100644 --- a/rc.d/init.d/functions +++ b/rc.d/init.d/functions @@ -91,8 +91,8 @@ __kill_pids_term_kill_checkpids() { local stime= for pid in $pids ; do - [ ! -e "/proc/$pid" ] && continue - read -r line < "/proc/$pid/stat" 2> /dev/null + [ -e "/proc/$pid" ] || continue + read -r line < "/proc/$pid/stat" 2> /dev/null || continue stat=($line) stime=${stat[21]} |