]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys.kern.pdeathsig.signal_delivered_ptrace: fix startup.
authorkib <kib@FreeBSD.org>
Mon, 19 Aug 2019 09:33:09 +0000 (09:33 +0000)
committerkib <kib@FreeBSD.org>
Mon, 19 Aug 2019 09:33:09 +0000 (09:33 +0000)
commit7beefda00baa685e1aa4d16ea91ff6430cbe10a3
treef00fa151fbf8becfda9daf00f0aef63f819585da
parentc7867f406d07bc62cb83d6ef2d292fef57307355
sys.kern.pdeathsig.signal_delivered_ptrace: fix startup.

Inform D that C executed procctl(PROC_PDEATHSIG_CTL).  Otherwise D
might allow B to exit before C is set up to receive a signal on the
parent exit.  In this case, C waits forever for the signal and test
hangs.

PR: 237657
Reported and tested by: lwhsu
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
tests/sys/kern/pdeathsig.c