summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/putenv.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-11-23 11:55:17 +0000
committeryar <yar@FreeBSD.org>2006-11-23 11:55:17 +0000
commitaf6cce5172606f7b47cb3d610fc2b8c9fa08b79c (patch)
tree8ccb68474bfd6de2bc2eaba6ee731a4e44618f92 /lib/libc/stdlib/putenv.c
parent75d7b09c83861e14ce15d3c488d180f094455382 (diff)
downloadFreeBSD-src-af6cce5172606f7b47cb3d610fc2b8c9fa08b79c.zip
FreeBSD-src-af6cce5172606f7b47cb3d610fc2b8c9fa08b79c.tar.gz
Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications. Earlier the only wildcard syntax was "-j 0" for "any jail". There were at least two shortcomings in it: First, jail ID 0 was abused; it meant "no jail" in other utils, e.g., ps(1). Second, it was impossible to match processed not in jail, which could be useful to rc.d developers. Therefore a new syntax is introduced: "-j any" means any jail while "-j none" means out of jail. The old syntax is preserved for compatibility, but now it's deprecated because it's limited and confusing. Update the respective regression tests. While I'm here, make the tests more complex but sensitive: Start several processes, some in jail and some out of jail, so we can detect that only the right processes are killed by pkill or matched by pgrep. Reviewed by: gad, pjd MFC after: 1 week
Diffstat (limited to 'lib/libc/stdlib/putenv.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud