freebsd-dev/tests/sys/kern
Mark Johnston 128c9bc05b Set the p_oppid field of orphans when exiting.
Such processes will be reparented to the reaper when the current
parent is done with them (i.e., ptrace detached), so p_oppid must be
updated accordingly.

Add a regression test to exercise this code path.  Previously it
would not be possible to reap an orphan with a stale oppid.

Reviewed by:	kib, mjg
Tested by:	pho
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D19825
2019-04-07 14:26:14 +00:00
..
acct
execve
pipe Revert r337929 2018-08-16 22:04:00 +00:00
coredump_phnum_helper.c
coredump_phnum_test.sh
kcov.c Allow the kcov buffer to be mmaped multiple times. 2019-02-21 10:11:15 +00:00
kern_copyin.c Revert r337929 2018-08-16 22:04:00 +00:00
kern_descrip_test.c
libkern_crc32.c
Makefile Temporarily disable the kcov tests. Not all architectures have 2019-01-12 11:50:39 +00:00
Makefile.depend
Makefile.inc
pdeathsig_helper.c
pdeathsig.c
ptrace_test.c Set the p_oppid field of orphans when exiting. 2019-04-07 14:26:14 +00:00
reaper.c Reparent a child of pdfork(2) to its reaper when the procdesc is closed. 2018-10-16 20:06:56 +00:00
sigaltstack.c Maybe make gcc happy 2018-11-30 23:47:57 +00:00
sys_getrandom.c
unix_passfd_test.c Revert r337929 2018-08-16 22:04:00 +00:00
unix_seqpacket_test.c
unix_socketpair_test.c Drop "All rights reserved" from the files I own 2019-03-11 22:23:56 +00:00
waitpid_nohang.c