Move the callsite of print_fatal_signal() down, under
"if (sig_kernel_coredump(signr))", so we don't need to check signr != SIGKILL.
We are only interested in the sig_kernel_coredump() signals anyway, and due to
the previous changes we almost never can see other fatal signals here except
SIGKILL.
Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
--- 25/kernel/signal.c~PFS_CLEANUP 2008-03-10 00:47:21.000000000 +0300
+++ 25/kernel/signal.c 2008-03-10 23:55:07.000000000 +0300
@@ -1766,9 +1766,10 @@ relock:
* Anything else is fatal, maybe with a core dump.
*/
current->flags |= PF_SIGNALED;
- if ((signr != SIGKILL) && print_fatal_signals)
- print_fatal_signal(regs, signr);
+
if (sig_kernel_coredump(signr)) {
+ if (print_fatal_signals)
+ print_fatal_signal(regs, signr);
/*
* If it was able to dump core, this kills all
* other threads in the group and synchronizes with
--
| Linus Torvalds | Linux 2.6.27-rc8 |
| Jeff Chua | 2.6.27rc1 cannot boot more than 8CPUs |
| Yinghai Lu | Re: [GIT *] Allow request_firmware() to be satisfied from in-kernel, use it in mor... |
| Russell King | Re: (hacky) [PATCH] silence MODPOST section mismatch warnings |
git: | |
| Steffen Prohaska | merge vs rebase: Is visualization in gitk the only problem? |
| Shawn O. Pearce | Re: clarify git clone --local --shared --reference |
| Wink Saville | Resolving conflicts |
| Linus Torvalds | People unaware of the importance of "git gc"? |
| Richard Stallman | Real men don't attack straw men |
| Kevin Neff | Patching a SSH 'Weakness' |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Jonathan Thornburg | strlcat/strlcpy vs overlapping arguments |
| Stefan Richter | Re: [GIT]: Networking |
| adobriyan | [PATCH 10/38] netns ct: per-netns expectations |
| "G" | Implementing RSTP and MSTP in Linux Kernel |
| Arnaldo Carvalho de Melo | Re: [PATCH 2/6] Phonet: connected sockets glue |
