(panic): Instead of exiting successfully, commit suicide by re-raising

the signal.
This commit is contained in:
Markus Armbruster 2004-12-18 10:26:53 +00:00
parent e56ffad8be
commit 71a0ece0aa

View file

@ -320,7 +320,11 @@ panic(int sig)
logerror("server received fatal signal %d", sig);
log_last_commands();
close_files();
_exit(0);
if (CANT_HAPPEN(sig != SIGBUS && sig != SIGSEGV
&& sig != SIGILL && sig != SIGFPE))
_exit(1);
if (raise(sig))
_exit(1);
}
void