From 353d0880d93063ab3a069a7b2ea91e362082550e Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Fri, 4 Sep 2015 23:38:17 +0000 Subject: [PATCH] - fix bug in pidofproc() --- lib/functions | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/functions b/lib/functions index 4187139..ced6e97 100644 --- a/lib/functions +++ b/lib/functions @@ -979,6 +979,8 @@ pidofproc() { for p in $(< "${pidfile}"); do [ -z "$(echo "$p" | awk '{gsub(/[0-9]/,"");print;}')" ] && pid="$pid $p" done + else + unset pidfile fi # Next try "pidof" if pidfile is not specified -- 2.46.0