[arch-projects] [PATCH] get PID of shell scripts
Andrwe Lord Weber
archlinux at andrwe.org
Sun Aug 28 13:40:13 EDT 2011
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 at 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
More information about the arch-projects
mailing list