(panic): Instead of exiting successfully, commit suicide by re-raising
the signal.
This commit is contained in:
parent
e56ffad8be
commit
71a0ece0aa
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue