* pidof/killall5 - make omit pid list a dynamic one.

* pidof - provide '-n' to skip stat(2) syscall on network based FS.
This commit is contained in:
Werner Fink
2010-02-23 16:51:18 +00:00
parent 746d8c46a1
commit 9e449b3f6d
4 changed files with 459 additions and 85 deletions

View File

@@ -22,9 +22,9 @@ killall5 -- send a signal to all processes.
.B killall5
.RB -signalnumber
.RB [ \-o
.IR omitpid ]
.IR omitpid[,omitpid..]]
.RB [ \-o
.IR omitpid.. ]
.IR omitpid[,omitpid..].. ]
.SH DESCRIPTION
.B killall5
is the SystemV killall command. It sends a signal to all processes except

View File

@@ -22,11 +22,12 @@ pidof -- find the process ID of a running program.
.B pidof
.RB [ \-s ]
.RB [ \-c ]
.RB [ \-n ]
.RB [ \-x ]
.RB [ \-o
.IR omitpid ]
.IR omitpid[,omitpid..] ]
.RB [ \-o
.IR omitpid.. ]
.IR omitpid[,omitpid..].. ]
.B program
.RB [ program.. ]
.SH DESCRIPTION
@@ -40,13 +41,22 @@ a
.B start-stop-daemon
(8) program that should be used instead.
.SH OPTIONS
.IP -s
.IP \-s
Single shot - this instructs the program to only return one \fIpid\fP.
.IP -c
.IP \-c
Only return process ids that are running with the same root directory.
This option is ignored for non-root users, as they will be unable to check
the current root directory of processes they do not own.
.IP -x
.IP \-n
Avoid
.BR stat (2)
system function call on all binaries which are located on network
based file systems like
.BR NFS .
Instead of using this option the the variable
.B PIDOF_NETFS
may be set and exported.
.IP \-x
Scripts too - this causes the program to also return process id's of
shells running the named scripts.
.IP "-o \fIomitpid\fP"