From 1a6a8198a63389cdb0ff4797d1054a7452ea23d3 Mon Sep 17 00:00:00 2001 From: "Thomas Bushnell, BSG" Date: Fri, 28 Jun 1996 19:44:50 +0000 Subject: [PATCH] (_hurd_internal_post_signal): In pending signal check for signal zero, repair logical sense of test by parethisizing correctly. --- hurd/hurdsig.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hurd/hurdsig.c b/hurd/hurdsig.c index 1ff6535c69..595cab624a 100644 --- a/hurd/hurdsig.c +++ b/hurd/hurdsig.c @@ -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); }