Be more jail friendly:
- export jail id to userland, since sysctl users can't follow the prison
pointer in ucred. this is backward-compatible in the sense that an old
kernel does export "0" for all processes.
- teach ps(1) "jail" as formating keyword, fix a separate issue with
lastcpu being incorrectly sorting and using the wrong formator
- teach killall(8) a new -j option, to select processes in a jail.
make it skip the inner matching loop (for commands), if no argument
is left to process
"I want an easy way to reboot a jail" -- drhodus@
That's the base, let's see who implements the rest.
MFC: 2006/04/03