]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] sigaction should clear all signals on SIG_IGN, not just < 32
authorGeorge Anzinger <george@mvista.com>
Sun, 8 Jan 2006 09:02:48 +0000 (01:02 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:13:53 +0000 (20:13 -0800)
commitd3d505e8a83dd1a2ac42fd53b3f7bd4a659c20f8
tree7d9467a4f9678d2271f82d48ec075a316cb1523f
parent9f3eba511d41927766e7fa1217f9f067bfed894a
[PATCH] sigaction should clear all signals on SIG_IGN, not just < 32

While rooting aroung in the signal code trying to understand how to fix the
SIG_IGN ploy (set sig handler to SIG_IGN and flood system with high speed
repeating timers) I came across what, I think, is a problem in sigaction()
in that when processing a SIG_IGN request it flushes signals from 1 to
SIGRTMIN and leaves the rest.  Attempt to fix this.

Signed-off-by: George Anzinger <george@mvista.com>
Cc: Roland McGrath <roland@redhat.com>
Cc: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/signal.h
kernel/signal.c