summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-07 20:30:45 +0000
committerfrosch <frosch@openttd.org>2009-09-07 20:30:45 +0000
commitfe7032a7a6efdd19b38a5a79b5a36bbe4cfdc6e7 (patch)
tree42b6abe6b465f82ffe8b5096e7a9c2e2fbcd5931 /src
parentcbc1fdeee1e73d0f42fd4be368e57c40807f88a9 (diff)
downloadopenttd-fe7032a7a6efdd19b38a5a79b5a36bbe4cfdc6e7.tar.xz
(svn r17463) -Change (r17453): Retrigger the abort signal after writing the crashlog, so the next one can catch it again (e.g. to write a core dump).
Diffstat (limited to 'src')
-rw-r--r--src/os/unix/crashlog_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/crashlog_unix.cpp b/src/os/unix/crashlog_unix.cpp
index 73644ba8d..0c2690610 100644
--- a/src/os/unix/crashlog_unix.cpp
+++ b/src/os/unix/crashlog_unix.cpp
@@ -153,14 +153,14 @@ void CDECL HandleCrash(int signum)
if (GamelogTestEmergency()) {
printf("A serious fault condition occured in the game. The game will shut down.\n");
printf("As you loaded an emergency savegame no crash information will be generated.\n");
- exit(3);
+ abort();
}
CrashLogUnix log(signum);
log.MakeCrashLog();
CrashLog::AfterCrashLogCleanup();
- exit(2);
+ abort();
}
/* static */ void CrashLog::InitialiseCrashLog()