diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-28 00:50:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-28 00:50:46 +0000 |
commit | 20fa14b748fda469724bcd0c489955289d947691 (patch) | |
tree | b07c654f0a9dff8409a392d2005f722cdfa4c0c7 | |
parent | d6bc490536fb307e407abf6cf8c074b8b2533b58 (diff) |
Error checking of raise(), so that if theres no coredump and raise fails, we know why :)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3915 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/helperfuncs.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index 2f9f8f8fd..c4cb5d744 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -1455,7 +1455,10 @@ void Error(int status) #endif send_error("Somebody screwed up... Whoops. IRC Server terminating."); signal(SIGSEGV, SIG_DFL); - raise(SIGSEGV); + if (raise(SIGSEGV) == -1) + { + log(DEFAULT,"What the hell, i couldnt re-raise SIGSEGV! Error: %s",strerror(errno)); + } Exit(status); } |