CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2021/03/23 04:30:40

Modified files:
        sys/kern       : kern_fork.c 

Log message:
Make a child execute fork_return() only if PTRACE_FORK has been specified.

fork_return() does an additional check to send a SIGTRAP (for a debugger)
but this signal might overwrite the SIGSTOP generated by the parent doing
a PT_ATTACH before the child has a change to execute any instruction.

Prevent a race visible only on SP system with regress/sys/kern/ptrace2.

ok kettenis@

Reply via email to