Module Name: src Committed By: kamil Date: Sun May 20 03:51:32 UTC 2018
Modified Files: src/sys/kern: sys_ptrace_common.c src/tests/lib/libc/sys: t_ptrace_wait.c Log Message: Fix and enable traceme_signal_nohandler2 in ATF ptrace(2) tests traceme_signal_nohandler2 checks emitting SIGSTOP to a traced process with the PT_CONTINUE operation. The expected behavior is to simulate a behavior of receiving SIGSTOP, generating SIGCHLD to its parent (in this case the debugger) and ability to call wait(2)-like function receiving the stopped child event. The previous behavior was unstopping the process and it has been adjusted in the kernel code. FreeBSD keeps unstopping a process for emitting SIGSTOP. Linux handles this scenario in the same way as NetBSD now. While there, implement the missing bits in the userland ATF test for traceme_signal_nohandler2: receiving and validating 2nd SIGSTOP event and continuing the process, followed by its normal termination. Sponsored by <The NetBSD Foundation> To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/sys/kern/sys_ptrace_common.c cvs rdiff -u -r1.47 -r1.48 src/tests/lib/libc/sys/t_ptrace_wait.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.