additional debug info during debug

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@25 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2004-09-04 16:23:19 +00:00
parent 1301c436fa
commit b632c43bd2

View File

@@ -9,6 +9,12 @@ void die(int sig) {
signal( SIGABRT, SIG_DFL );
signal( SIGPIPE, SIG_DFL );
#ifdef _DEBUG
cerr << "Exiting on SIG [" << sig << "]" << endl;
if ( ( sig == SIGABRT ) || ( sig == SIGSEGV ) )
abort();
#endif /* _DEBUG */
delete CZNC::New();
exit(sig);
}