Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,
authorguenther <guenther@openbsd.org>
Sun, 4 May 2014 05:03:26 +0000 (05:03 +0000)
committerguenther <guenther@openbsd.org>
Sun, 4 May 2014 05:03:26 +0000 (05:03 +0000)
commited557a3682b90c9d79cd694303ca27156c5408c7
tree7a2e6557b8aca0bcad585f35e2ae71533ab0ea02
parent4fbb8f269ace14b26f60079f0da7f9710592a255
Add PS_SYSTEM, the process-level mirror of the thread-level P_SYSTEM,
and FORK_SYSTEM as a flag to set them.  This eliminates needing to
peek into other processes threads in various places.  Inspired by NetBSD

ok miod@ matthew@
sys/kern/init_main.c
sys/kern/kern_fork.c
sys/kern/kern_kthread.c
sys/kern/kern_sched.c
sys/kern/kern_sig.c
sys/kern/kern_sysctl.c
sys/kern/sys_process.c
sys/sys/proc.h