8e49361164
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 |
||
---|---|---|
.. | ||
acct | ||
execve | ||
pipe | ||
coredump_phnum_helper.c | ||
coredump_phnum_test.sh | ||
kcov.c | ||
kern_copyin.c | ||
kern_descrip_test.c | ||
kill_zombie.c | ||
libkern_crc32.c | ||
Makefile | ||
Makefile.depend | ||
Makefile.inc | ||
memfd_test.c | ||
pdeathsig_helper.c | ||
pdeathsig.c | ||
ptrace_test.c | ||
reaper.c | ||
sigaltstack.c | ||
sys_getrandom.c | ||
unix_passfd_test.c | ||
unix_seqpacket_test.c | ||
unix_socketpair_test.c | ||
waitpid_nohang.c |