Просмотр исходного кода

Fixing the issue when the process id vanishes.

cedarlug 10 лет назад
Родитель
Сommit
687ae5aa72
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      lgsm/functions/command_stop.sh

+ 1 - 0
lgsm/functions/command_stop.sh

@@ -180,6 +180,7 @@ fn_stop_ark(){
                                 rev | cut -d\/ -f1)
                         #
                         # check for a valid pid
+                        pig=${pid//[!0-9]/}
                         let pid+=0 # turns an empty string into a valid number, '0',
                         # and a valid numeric pid remains unchanged.
                         if [[ $pid -gt 1 && $pid -le $(cat /proc/sys/kernel/pid_max) ]] ; then