NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: PR/52117 CVS commit: src/tests/kernel

The following reply was made to PR kern/52117; it has been noted by GNATS.

From: Martin Husemann <>
Subject: Re: PR/52117 CVS commit: src/tests/kernel
Date: Tue, 28 Mar 2017 15:37:35 +0200

 On Tue, Mar 28, 2017 at 01:20:01PM +0000, Kamil Rytarowski wrote:
 >  Add message similar to:
 >      We expect two SIGTRAP events, for child 22199 (TRAP_CHLD,
 >      pe_report_event=PTRACE_FORK, state.pe_other_pid=child2) and for child2
 >      (TRAP_CHLD, pe_report_event=PTRACE_FORK, state.pe_other_pid=child)
 Where is the kernel code hiding that causes this for the forkee?
 I see the code for the process calling fork() at the end of
 kern_fork.c, but the "child2" process does not run that code, and I
 don't understand how it works on amd64. nxr does not find other kernel
 referencs for TRAP_CHLD (and this one works, the forker properly gets

Home | Main Index | Thread Index | Old Index