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/wc | |
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/wc')
0 files changed, 0 insertions, 0 deletions