28 Aug
2011
28 Aug
'11
5:40 p.m.
Hi, get_pid() can now get the PID of a running shell script which is given as parameter. Signed-off-by: Andrwe Lord Weber <archlinux@andrwe.org> --- 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