aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJesper Derehag <jderehag@hotmail.com>2013-03-19 16:50:05 -0400
committerDavid S. Miller <davem@davemloft.net>2013-03-20 13:23:21 -0400
commit2b5faa4c553f90ee2dde1d976b220b1ca9741ef0 (patch)
tree91d6d907a0bc8ef659fee414d5415a84aee7b58b /kernel
parent800c644bcd0f2b29020c0dd6b661596c14c0f34f (diff)
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')
-rw-r--r--kernel/signal.c2
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 @@
32#include <linux/user_namespace.h> 32#include <linux/user_namespace.h>
33#include <linux/uprobes.h> 33#include <linux/uprobes.h>
34#include <linux/compat.h> 34#include <linux/compat.h>
35#include <linux/cn_proc.h>
35#define CREATE_TRACE_POINTS 36#define CREATE_TRACE_POINTS
36#include <trace/events/signal.h> 37#include <trace/events/signal.h>
37 38
@@ -2350,6 +2351,7 @@ relock:
2350 if (sig_kernel_coredump(signr)) { 2351 if (sig_kernel_coredump(signr)) {
2351 if (print_fatal_signals) 2352 if (print_fatal_signals)
2352 print_fatal_signal(info->si_signo); 2353 print_fatal_signal(info->si_signo);
2354 proc_coredump_connector(current);
2353 /* 2355 /*
2354 * If it was able to dump core, this kills all 2356 * If it was able to dump core, this kills all
2355 * other threads in the group and synchronizes with 2357 * other threads in the group and synchronizes with