pkill(1): add '-j jid' flag to restrict matches to jailed processes.
authorChris Turner <c.turner@199technologies.com>
Sat, 10 Mar 2012 11:37:48 +0000 (11:37 +0000)
committerChris Turner <c.turner@199technologies.com>
Sat, 10 Mar 2012 11:37:48 +0000 (11:37 +0000)
commit54499c336ab52f8d78c5458ee392b0cfb5431bd0
tree23cb80422d3efc7e704f9868203719e19516c55b
parent269be04699e7603b7840084faa03c3448bdbbc65
pkill(1): add '-j jid' flag to restrict matches to jailed processes.

Add a '-j' option to pgrep(1)/pkill(1).
Update manual page to reflect usage.

As DragonFlyBSD did not have this option previously, the 'COMPATIBILITY'
notes outlined in FreeBSD's '-j' options do not apply - namely,
the '-j 0' option defaults to non-jailed processes, and '-1' is used
to indicate all jailed processes should be matched. Also, the 'any'/'none'
string options were not ported as they require more invasive changes.

Inspired-by: FreeBSD
usr.bin/pkill/pkill.1
usr.bin/pkill/pkill.c