(_hurd_internal_post_signal): In pending signal check for signal zero, repair logical sense of test by parethisizing correctly.

This commit is contained in:
Thomas Bushnell, BSG 1996-06-28 19:44:50 +00:00
parent 6032698991
commit 1a6a8198a6
1 changed files with 4 additions and 4 deletions

View File

@ -927,13 +927,13 @@ _hurd_internal_post_signal (struct hurd_sigstate *ss,
{
__spin_lock (&ss->lock);
for (signo = 1; signo < NSIG; ++signo)
if (__sigismember (&ss->pending, signo) &&
!__sigismember (&ss->blocked, signo) ||
if (__sigismember (&ss->pending, signo)
&& (!__sigismember (&ss->blocked, signo)
/* We "deliver" immediately pending blocked signals whose
action might be to ignore, so that if ignored they are
dropped right away. */
ss->actions[signo].sa_handler == SIG_IGN ||
ss->actions[signo].sa_handler == SIG_DFL)
|| ss->actions[signo].sa_handler == SIG_IGN
|| ss->actions[signo].sa_handler == SIG_DFL))
goto deliver_pending;
__spin_unlock (&ss->lock);
}