]> git.baikalelectronics.ru Git - kernel.git/commit
sigwait eats blocked default-ignore signals
authorRoland McGrath <roland@redhat.com>
Mon, 12 Nov 2007 23:41:55 +0000 (15:41 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 13 Nov 2007 00:05:23 +0000 (16:05 -0800)
commit9912fb200f4968d995a8e75d8be86f97ba5db913
tree25a46ecf33feb35f243bfaeb36510892789ff8a8
parent12ba294cc83380f944eb761d465e5b3041601a89
sigwait eats blocked default-ignore signals

While a signal is blocked, it must be posted even if its action is
SIG_IGN or is SIG_DFL with the default action to ignore.  This works
right most of the time, but is broken when a sigwait (rt_sigtimedwait)
is in progress.  This changes the early-discard check to respect
real_blocked.  ~blocked is the set to check for "should wake up now",
but ~(blocked|real_blocked) is the set for "blocked" semantics as
defined by POSIX.

This fixes bugzilla entry 9347, see

http://bugzilla.kernel.org/show_bug.cgi?id=9347

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/signal.c