aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/bsc_hack.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-08-07 00:29:44 +0200
committerHarald Welte <laforge@gnumonks.org>2009-08-07 00:29:44 +0200
commit31c3d34e61d04b98c372576bf42fe09da912f0c9 (patch)
tree1a1f8b7f90eceb99aa5ae7e16eaafe32300302a6 /openbsc/src/bsc_hack.c
parenta6fd58eaede5dc702e8cfb0801cbf305de29912f (diff)
in case of SIGABRT, don't exit(0) and thus prevent creating a core file
Diffstat (limited to 'openbsc/src/bsc_hack.c')
-rw-r--r--openbsc/src/bsc_hack.c4
1 files changed, 3 insertions, 1 deletions
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;