Permalink
Browse files

Hurd signals: don't drop blocked ignored signals

Although POSIX tolerates the current approach, it is more consistent
to wait for ignored signals to be unblocked before we deliver them.

	* hurd/hurdsig.c (post_signal): Don't drop blocked ignored signals.
  • Loading branch information...
1 parent da8bf5e commit 8e87205e2f8bd8ce8fca2eba75f7695394351f24 @jeremie-koenig committed Jul 20, 2011
Showing with 1 addition and 3 deletions.
  1. +1 −3 hurd/hurdsig.c
View
@@ -859,9 +859,7 @@ post_signal (struct hurd_sigstate *ss,
}
/* Handle receipt of a blocked signal, or any signal while stopped. */
- if (act != ignore && /* Signals ignored now are forgotten now. */
- __sigismember (&blocked, signo) ||
- (signo != SIGKILL && _hurd_stopped))
+ if (__sigismember (&blocked, signo) || (signo != SIGKILL && _hurd_stopped))
{
mark_pending ();
act = ignore;

0 comments on commit 8e87205

Please sign in to comment.