diff options
author | pjd <pjd@FreeBSD.org> | 2005-03-20 11:42:26 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-03-20 11:42:26 +0000 |
commit | c7d05e490c2ccbd4673cf2a4a583571e03d56d2f (patch) | |
tree | c8045e6b004246b3ad2d61bdf5b3bbb54d4e57ba /usr.bin/pkill/pkill.1 | |
parent | a5414c9dd1d3b88cad7a5c25610d058b8fc1b06c (diff) | |
download | FreeBSD-src-c7d05e490c2ccbd4673cf2a4a583571e03d56d2f.zip FreeBSD-src-c7d05e490c2ccbd4673cf2a4a583571e03d56d2f.tar.gz |
- Introduce an '-o' option which allows to match oldest of the matching
processes.
This option can be also found in Solaris and Linux.
- Use timercmp(9) macro for timeval comparsion.
- Include time.h directly, don't depend on stat.h doing it for us.
Reviewed by: gad (first point)
MFC after: 3 days
Diffstat (limited to 'usr.bin/pkill/pkill.1')
-rw-r--r-- | usr.bin/pkill/pkill.1 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.bin/pkill/pkill.1 b/usr.bin/pkill/pkill.1 index 7a272b2..f4180af 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 Sfilnvx +.Op Fl Sfilnovx .Op Fl F Ar pidfile .Op Fl G Ar gid .Op Fl M Ar core @@ -60,7 +60,7 @@ .Ar pattern ... .Nm pkill .Op Fl Ar signal -.Op Fl finvx +.Op Fl finovx .Op Fl F Ar pidfile .Op Fl G Ar gid .Op Fl M Ar core @@ -146,8 +146,10 @@ print the process ID and the full argument list for each matching process. This option can only be used with the .Nm pgrep command. -.It Fl n -Match only the most recently created process, if any. +.It Fl n +Select only the newest (most recently started) of the matching processes. +.It Fl o +Select only the oldest (least recently started) of the matching processes. .It Fl s Ar sid Restrict matches to processes with a session ID in the comma-separated list |