diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-28 00:44:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-28 00:44:48 +0000 |
commit | d6bc490536fb307e407abf6cf8c074b8b2533b58 (patch) | |
tree | 2d50e0faba07c25595859ad9fa1d73801affe74d /src/helperfuncs.cpp | |
parent | 5d1d1687392e17a4d23abffc053aee9fae0afe6c (diff) |
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
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 2 |
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); } |