Introduce enternewpgrp() & enterthispgrp(), from FreeBSD via guenther@.
authormpi <mpi@openbsd.org>
Tue, 20 Feb 2018 12:38:58 +0000 (12:38 +0000)
committermpi <mpi@openbsd.org>
Tue, 20 Feb 2018 12:38:58 +0000 (12:38 +0000)
commit45c2dfd412dd459e0cd48afefede63b618ec8658
tree1ff8c27744840b5b16276a29b8d66f2364c3eab0
parentf89789bb56117a5c93ddaec7c1f73433a6120039
Introduce enternewpgrp() & enterthispgrp(), from FreeBSD via guenther@.

This code shuffling will ease the introduction of the proctree lock
in sys_setsid() and sys_setpgid().

Extracted from a larger diff from guenther@, ok visa@
sys/kern/kern_proc.c
sys/kern/kern_prot.c
sys/sys/proc.h