mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-03 00:10:10 +00:00
(_hurd_internal_post_signal): In pending signal check for signal zero, repair logical sense of test by parethisizing correctly.
This commit is contained in:
parent
6032698991
commit
1a6a8198a6
@ -927,13 +927,13 @@ _hurd_internal_post_signal (struct hurd_sigstate *ss,
|
|||||||
{
|
{
|
||||||
__spin_lock (&ss->lock);
|
__spin_lock (&ss->lock);
|
||||||
for (signo = 1; signo < NSIG; ++signo)
|
for (signo = 1; signo < NSIG; ++signo)
|
||||||
if (__sigismember (&ss->pending, signo) &&
|
if (__sigismember (&ss->pending, signo)
|
||||||
!__sigismember (&ss->blocked, signo) ||
|
&& (!__sigismember (&ss->blocked, signo)
|
||||||
/* We "deliver" immediately pending blocked signals whose
|
/* We "deliver" immediately pending blocked signals whose
|
||||||
action might be to ignore, so that if ignored they are
|
action might be to ignore, so that if ignored they are
|
||||||
dropped right away. */
|
dropped right away. */
|
||||||
ss->actions[signo].sa_handler == SIG_IGN ||
|
|| ss->actions[signo].sa_handler == SIG_IGN
|
||||||
ss->actions[signo].sa_handler == SIG_DFL)
|
|| ss->actions[signo].sa_handler == SIG_DFL))
|
||||||
goto deliver_pending;
|
goto deliver_pending;
|
||||||
__spin_unlock (&ss->lock);
|
__spin_unlock (&ss->lock);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user