OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15508d2
)
[PATCH] sys_signal: initialize ->sa_mask
author
Oleg Nesterov
<oleg@tv-sign.ru>
Thu, 9 Feb 2006 19:41:41 +0000
(22:41 +0300)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 10 Feb 2006 00:17:36 +0000
(16:17 -0800)
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>
kernel/signal.c
patch
|
blob
|
history
diff --git
a/kernel/signal.c
b/kernel/signal.c
index
b373fc2
..
01a1e7f
100644
(file)
--- 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);