From d6bc490536fb307e407abf6cf8c074b8b2533b58 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 28 Apr 2006 00:44:48 +0000 Subject: signal/raise in the sigsegv handler to re-raise the sig for a coredump git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3913 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/helperfuncs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 279ccc5f4..2f9f8f8fd 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1454,6 +1454,8 @@ void Error(int status) log(DEFAULT,"You do not have execinfo.h so i could not backtrace -- on FreeBSD, please install the libexecinfo port."); #endif send_error("Somebody screwed up... Whoops. IRC Server terminating."); + signal(SIGSEGV, SIG_DFL); + raise(SIGSEGV); Exit(status); } -- cgit v1.2.3