diff options
author | Oleg Nesterov <oleg@tv-sign.ru> | 2006-02-09 22:41:41 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-09 16:17:36 -0800 |
commit | c70d3d703ad94727dab2a3664aeee33d71e00715 (patch) | |
tree | c809680e7ea5167087d9ce77b2743e7fdf921b5b /kernel | |
parent | 15508d22d00277a1f2a1022dce38f2772c810d32 (diff) |
[PATCH] sys_signal: initialize ->sa_mask
Pointed out by Linus Torvalds.
sys_signal() forgets to initialize ->sa_mask.
( I suspect arch/ia64/ia32/ia32_signal.c:sys32_signal()
also needs this fix )
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/signal.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index b373fc2420d..01a1e7f7acf 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -2702,6 +2702,7 @@ sys_signal(int sig, __sighandler_t handler) new_sa.sa.sa_handler = handler; new_sa.sa.sa_flags = SA_ONESHOT | SA_NOMASK; + sigemptyset(&new_sa.sa.sa_mask); ret = do_sigaction(sig, &new_sa, &old_sa); |