From: Oleg Nesterov Date: Wed, 26 May 2010 21:44:12 +0000 (-0700) Subject: INIT_SIGHAND: use SIG_DFL instead of NULL X-Git-Tag: v2.6.35-rc1~101 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0a14a130cac9c6826bc81a089b12ab5cbb2b97fc;p=~emulex%2Finfiniband.git INIT_SIGHAND: use SIG_DFL instead of NULL 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 Cc: Cedric Le Goater Cc: Dave Hansen Cc: Eric Biederman Cc: Herbert Poetzl Cc: Mathias Krause Acked-by: Roland McGrath Acked-by: Serge Hallyn Cc: Sukadev Bhattiprolu Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/linux/init_task.h b/include/linux/init_task.h index 94fecb748a2..2beaa13492b 100644 --- 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), \ }