in case of SIGABRT, don't exit(0) and thus prevent creating a core file

This commit is contained in:
Harald Welte 2009-08-07 00:29:44 +02:00
parent a6fd58eaed
commit 31c3d34e61
1 changed files with 3 additions and 1 deletions

View File

@ -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;