projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f106eee
)
INIT_SIGHAND: use SIG_DFL instead of NULL
author
Oleg Nesterov
<
[email protected]
>
Wed, 26 May 2010 21:44:12 +0000
(14:44 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 27 May 2010 16:12:52 +0000
(09:12 -0700)
Cosmetic, no changes in the compiled code. Just s/NULL/SIG_DFL/ to make
it more readable and grep-friendly.
Note: probably SIG_IGN makes more sense, we could kill ignore_signals().
But then kernel_init() should do flush_signal_handlers() before exec().
Signed-off-by: Oleg Nesterov <
[email protected]
>
Cc: Cedric Le Goater <
[email protected]
>
Cc: Dave Hansen <
[email protected]
>
Cc: Eric Biederman <
[email protected]
>
Cc: Herbert Poetzl <
[email protected]
>
Cc: Mathias Krause <
[email protected]
>
Acked-by: Roland McGrath <
[email protected]
>
Acked-by: Serge Hallyn <
[email protected]
>
Cc: Sukadev Bhattiprolu <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
include/linux/init_task.h
patch
|
blob
|
history
diff --git
a/include/linux/init_task.h
b/include/linux/init_task.h
index 94fecb748a286256fb95a07dc0f588fd1e812b37..2beaa13492beb5dffdb90c0041d942a3785181e1 100644
(file)
--- a/
include/linux/init_task.h
+++ b/
include/linux/init_task.h
@@
-35,7
+35,7
@@
extern struct nsproxy init_nsproxy;
#define INIT_SIGHAND(sighand) { \
.count = ATOMIC_INIT(1), \
- .action = { { { .sa_handler =
NULL, } }, },
\
+ .action = { { { .sa_handler =
SIG_DFL, } }, },
\
.siglock = __SPIN_LOCK_UNLOCKED(sighand.siglock), \
.signalfd_wqh = __WAIT_QUEUE_HEAD_INITIALIZER(sighand.signalfd_wqh), \
}