From ab40ea64e2475b8ec3fb3c2fd11c8f8213edd3cc Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 29 May 2017 15:13:17 +0200 Subject: [PATCH] Checking pid doesn't contain 0 --- dev/ofunctions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/ofunctions.sh b/dev/ofunctions.sh index 30778cf..b949b47 100644 --- a/dev/ofunctions.sh +++ b/dev/ofunctions.sh @@ -3,7 +3,7 @@ #### OFUNCTIONS MINI SUBSET #### _OFUNCTIONS_VERSION=2.1.4-dev -_OFUNCTIONS_BUILD=2017052804 +_OFUNCTIONS_BUILD=2017052901 #### _OFUNCTIONS_BOOTSTRAP SUBSET #### _OFUNCTIONS_BOOTSTRAP=true #### _OFUNCTIONS_BOOTSTRAP SUBSET END #### @@ -317,7 +317,7 @@ function KillChilds { local pid="${1}" # Parent pid to kill childs local self="${2:-false}" # Should parent be killed too ? - if [ $(IsNumeric "$pid") -eq 0 ] || [ "$pid" == "" ]; then + if [ $(IsNumeric "$pid") -eq 0 ] || [ "$pid" == "" ] || [ "$pid" == "0" ]; then Logger "Bogus pid given [$pid]." "CRITICAL" return 1 fi