Hi,

get_pid() can now get the PID of a running shell script which is given as 
parameter.

Signed-off-by: Andrwe Lord Weber <[email protected]>
---
 functions |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/functions b/functions
index f68c088..89215d8 100644
--- a/functions
+++ b/functions
@@ -242,7 +242,7 @@ ck_status() {
 
 # Return PID of $1
 get_pid() {
-       pidof -o %PPID $1 || return 1
+       pidof -o %PPID -x $1 || return 1
 }
 
 # Check if PID-file $1 is still the active PID-file for command $2
-- 
1.7.6


Reply via email to