Use abort() instead of raising SIGKILL, gives us proper core dumps if enabled
authorMartin Willi <martin@strongswan.org>
Fri, 20 Nov 2009 13:36:24 +0000 (14:36 +0100)
committerMartin Willi <martin@strongswan.org>
Fri, 20 Nov 2009 13:36:24 +0000 (14:36 +0100)
src/charon/daemon.c

index 9195920..0ade118 100644 (file)
@@ -536,7 +536,7 @@ static void segv_handler(int signal)
        backtrace->destroy(backtrace);
 
        DBG1(DBG_DMN, "killing ourself, received critical signal");
-       raise(SIGKILL);
+       abort();
 }
 
 /**