freebsd-nq/tests/sys
Mariusz Zaborski 8e49361164 procdesc: allow to collect status through wait(1) if process is traced
The debugger like truss(1) depends on the wait(2) syscall. This syscall
waits for ALL children. When it is waiting for ALL child's the children
created by process descriptors are not returned. This behavior was
introduced because we want to implement libraries which may pdfork(1).

The behavior of process descriptor brakes truss(1) because it will
not be able to collect the status of processes with process descriptors.

To address this problem the status is returned to parent when the
child is traced. While the process is traced the debugger is the new parent.
In case the original parent and debugger are the same process it means the
debugger explicitly used pdfork() to create the child. In that case the debugger
should be using kqueue()/pdwait() instead of wait().

Add test case to verify that. The test case was implemented by markj@.

Reviewed by:	kib, markj
Discussed with:	jhb
MFC after:	1 month
Differential Revision:	https://reviews.freebsd.org/D20362
2019-11-25 18:33:21 +00:00
..
acl Set required program for all acl tests 2019-09-05 18:54:46 +00:00
aio Revert r337929 2018-08-16 22:04:00 +00:00
audit Fix and simplify code by using ATF_REQUIRE_FEATURE macro 2019-04-01 14:21:32 +00:00
auditpipe
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl zfs: multiple improvements to the zpool_add tests 2019-10-10 02:17:45 +00:00
common pkgbase: Put the sys/common test into the tests package 2019-09-05 14:14:07 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo
file Revert r337929 2018-08-16 22:04:00 +00:00
fs fusefs: initialize C++ classes the Coverity way 2019-09-16 15:56:21 +00:00
geom Remove tests for the deprecated algorithms in r348206 2019-05-31 04:29:29 +00:00
kern procdesc: allow to collect status through wait(1) if process is traced 2019-11-25 18:33:21 +00:00
kqueue Temporarily skip flakey test cases 2018-12-06 09:22:35 +00:00
mac
mqueue
net tests: basic VLAN test 2019-10-15 04:50:08 +00:00
netinet Skip sys.netinet.socket_afinet.socket_afinet_bind_zero temporarily because it 2019-06-23 19:37:12 +00:00
netinet6 icmpv6: Fix mbuf change in mld 2019-11-18 21:59:47 +00:00
netipsec ipsec tests: Skip if ipsec.ko is not loaded 2019-05-16 02:18:57 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil Reenable netinet6 and netpfil tests on i386, net/scapy 2.4.3_2 contains the fix 2019-11-08 18:56:02 +00:00
opencrypto tests/sys/opencrypto: enable armv8crypto on aarch64 2019-08-10 15:53:42 +00:00
pjdfstest
posixshm Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
sys Fix gcc build 2019-11-24 15:03:35 +00:00
vfs
vm Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
Makefile frag6: import a set of test cases 2019-10-21 09:33:45 +00:00
Makefile.depend
Makefile.inc