From 31c3d34e61d04b98c372576bf42fe09da912f0c9 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 7 Aug 2009 00:29:44 +0200 Subject: [PATCH] in case of SIGABRT, don't exit(0) and thus prevent creating a core file --- openbsc/src/bsc_hack.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 82cb7886a..9e0a26096 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -1320,11 +1320,13 @@ static void signal_handler(int signal) switch (signal) { case SIGINT: - case SIGABRT: shutdown_net(gsmnet); sleep(3); exit(0); break; + case SIGABRT: + /* in case of abort, we want to obtain a talloc report + * and then return to the caller, who will abort the process */ case SIGUSR1: talloc_report_full(tall_bsc_ctx, stderr); break;