If no thread can immediately handle a signal, which has been sent
authorbluhm <bluhm@openbsd.org>
Wed, 11 Jul 2018 19:28:16 +0000 (19:28 +0000)
committerbluhm <bluhm@openbsd.org>
Wed, 11 Jul 2018 19:28:16 +0000 (19:28 +0000)
commit3f0b58624f77a2c3f50097dc3510d689f9c832ff
tree613d4551394608294e3cca3421386de22d8ea0b2
parent37c2ba46ee2045b1c4a2209004f0cf1950311ccc
If no thread can immediately handle a signal, which has been sent
to the process, it is made pending at the main thread.  There it
could hang forever.  So also check the main thread for signal
delivery.  This workaround fixes hung tests in posixtestsuite.  The
proper solution would be to split pending signals for process and
threads.
input visa@; OK guenther@
sys/kern/kern_sig.c
sys/sys/signalvar.h