From 687ae5aa72690ed9f4dd0e2444342261b9d0ea70 Mon Sep 17 00:00:00 2001 From: cedarlug <cedarlug@fistfuloffrags.org> Date: Thu, 30 Jun 2016 12:46:12 -0500 Subject: [PATCH 1/2] Fixing the issue when the process id vanishes. --- lgsm/functions/command_stop.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index 8bca6779c..d21efc855 100644 --- a/lgsm/functions/command_stop.sh +++ b/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 From 05202ac0c33ae2229471ca3ed9ab5903c64c00e9 Mon Sep 17 00:00:00 2001 From: cedarlug <cedarlug@fistfuloffrags.org> Date: Thu, 30 Jun 2016 18:59:18 -0500 Subject: [PATCH 2/2] Typo's are KILLING ME! --- lgsm/functions/command_stop.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgsm/functions/command_stop.sh b/lgsm/functions/command_stop.sh index d21efc855..9151c19ec 100644 --- a/lgsm/functions/command_stop.sh +++ b/lgsm/functions/command_stop.sh @@ -180,7 +180,7 @@ fn_stop_ark(){ rev | cut -d\/ -f1) # # check for a valid pid - pig=${pid//[!0-9]/} + pid=${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