mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-12 09:58:36 +00:00
Backout unblocking of signal if no threads can currently handle it.
The check for pending signal after direct invocation of signal handler is sufficient.
This commit is contained in:
parent
65fe4c0bfd
commit
2a99cc4322
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163336
@ -441,14 +441,13 @@ thread_sig_find(int sig)
|
||||
}
|
||||
|
||||
if (suspended_thread == NULL &&
|
||||
signaled_thread == NULL) {
|
||||
signaled_thread == NULL)
|
||||
/*
|
||||
* Add it to the set of signals pending
|
||||
* on the process:
|
||||
*/
|
||||
_thread_sigq[sig - 1].blocked = 0;
|
||||
sigaddset(&_process_sigpending, sig);
|
||||
} else {
|
||||
else {
|
||||
/*
|
||||
* We only deliver the signal to one thread;
|
||||
* give preference to the suspended thread:
|
||||
|
Loading…
Reference in New Issue
Block a user