summaryrefslogtreecommitdiff
path: root/src/helperfuncs.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r--src/helperfuncs.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}