diff options
author | Jesper Derehag <jderehag@hotmail.com> | 2013-03-19 21:50:05 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 18:23:21 +0100 |
commit | 2b5faa4c553f90ee2dde1d976b220b1ca9741ef0 (patch) | |
tree | 91d6d907a0bc8ef659fee414d5415a84aee7b58b /kernel/signal.c | |
parent | gianfar: Refactor config coalescing calls for all queues (diff) | |
download | linux-2b5faa4c553f90ee2dde1d976b220b1ca9741ef0.tar.xz linux-2b5faa4c553f90ee2dde1d976b220b1ca9741ef0.zip |
connector: Added coredumping event to the process connector
Process connector can now also detect coredumping events.
Main aim of patch is get notified at start of coredumping, instead of
having to wait for it to finish and then being notified through EXIT
event.
Could be used for instance by process-managers that want to get
notified as soon as possible about process failures, and not
necessarily beeing notified after coredump, which could be in the
order of minutes depending on size of coredump, piping and so on.
Signed-off-by: Jesper Derehag <jderehag@hotmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel/signal.c')
-rw-r--r-- | kernel/signal.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/signal.c b/kernel/signal.c index dd72567767d9..497330ec2ae9 100644 --- a/kernel/signal.c +++ b/kernel/signal.c @@ -32,6 +32,7 @@ #include <linux/user_namespace.h> #include <linux/uprobes.h> #include <linux/compat.h> +#include <linux/cn_proc.h> #define CREATE_TRACE_POINTS #include <trace/events/signal.h> @@ -2350,6 +2351,7 @@ relock: if (sig_kernel_coredump(signr)) { if (print_fatal_signals) print_fatal_signal(info->si_signo); + proc_coredump_connector(current); /* * If it was able to dump core, this kills all * other threads in the group and synchronizes with |