]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sys.kern.pdeathsig.signal_delivered_ptrace: fix startup.
authorKonstantin Belousov <kib@FreeBSD.org>
Mon, 19 Aug 2019 09:33:09 +0000 (09:33 +0000)
committerKonstantin Belousov <kib@FreeBSD.org>
Mon, 19 Aug 2019 09:33:09 +0000 (09:33 +0000)
commitde567a4bef606b118b5f771c863980c3206d781c
treef00fa151fbf8becfda9daf00f0aef63f819585da
parent39ba52c0b74ede73f9e35f2633091e5a74cae4d5
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