From 71a0ece0aa674e27158eda0af6047e2843942c8d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 18 Dec 2004 10:26:53 +0000 Subject: [PATCH] (panic): Instead of exiting successfully, commit suicide by re-raising the signal. --- src/server/main.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/main.c b/src/server/main.c index f9d859ea..77c917f9 100644 --- a/src/server/main.c +++ b/src/server/main.c @@ -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