diff options
author | pjd <pjd@FreeBSD.org> | 2005-03-20 11:30:26 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-03-20 11:30:26 +0000 |
commit | a5414c9dd1d3b88cad7a5c25610d058b8fc1b06c (patch) | |
tree | 89e4ddeb24f9f952cdc70ea982fc692f5af99a3a /usr.bin/pkill/pkill.1 | |
parent | b616d49d9f0bc8d3516c123cc129f99d4a2e1cdf (diff) | |
download | FreeBSD-src-a5414c9dd1d3b88cad7a5c25610d058b8fc1b06c.zip FreeBSD-src-a5414c9dd1d3b88cad7a5c25610d058b8fc1b06c.tar.gz |
- Introduce '-S' option which allows to match system processes (pgrep only).
- Rename IS_KERNPROC() macro to PSKIP() and extend its functionality.
Now it'll skip calling process and system processes when -S is not given.
As a side effect it fixes '-n' option. Before it was always matching
calling process (because of missing 'if (kp->ki_pid == mypid)' check)
and after that, calling process was ignored.
- When '-l' option is given and there are no arguments, use p_comm as an
arguments list (this is helpful for kernel threads matching).
Reviewed by: gad
MFC after: 3 days
Diffstat (limited to 'usr.bin/pkill/pkill.1')
-rw-r--r-- | usr.bin/pkill/pkill.1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/pkill/pkill.1 b/usr.bin/pkill/pkill.1 index b870458..7a272b2 100644 --- a/usr.bin/pkill/pkill.1 +++ b/usr.bin/pkill/pkill.1 @@ -44,7 +44,7 @@ .Nd find or signal processes by name .Sh SYNOPSIS .Nm pgrep -.Op Fl filnvx +.Op Fl Sfilnvx .Op Fl F Ar pidfile .Op Fl G Ar gid .Op Fl M Ar core @@ -105,6 +105,8 @@ which is the kernel image the system has booted from. Restrict matches to processes with a parent process ID in the comma-separated list .Ar ppid . +.It Fl S +Search also in system processes (kernel threads). .It Fl U Ar uid Restrict matches to processes with a real user ID in the comma-separated list |