summaryrefslogtreecommitdiffstats
path: root/src/DeadlockDetect.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2013-12-10 21:55:57 +0100
committerMattes D <github@xoft.cz>2013-12-10 21:55:57 +0100
commit60ca21b59877b5402c6fb6cc108283cbd4f986fd (patch)
treeb7fd3d91bd4376d537e49f7a18023ff8fabfc449 /src/DeadlockDetect.cpp
parentMerge pull request #412 from mc-server/fixes (diff)
parentadded abort to DeadlockDetector to generate core dumps on failure (diff)
downloadcuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar.gz
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar.bz2
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar.lz
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar.xz
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.tar.zst
cuberite-60ca21b59877b5402c6fb6cc108283cbd4f986fd.zip
Diffstat (limited to '')
-rw-r--r--src/DeadlockDetect.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/DeadlockDetect.cpp b/src/DeadlockDetect.cpp
index e699e0c84..c42d09b89 100644
--- a/src/DeadlockDetect.cpp
+++ b/src/DeadlockDetect.cpp
@@ -7,6 +7,7 @@
#include "DeadlockDetect.h"
#include "Root.h"
#include "World.h"
+# include <cstdlib>
@@ -137,11 +138,7 @@ void cDeadlockDetect::CheckWorldAge(const AString & a_WorldName, Int64 a_Age)
void cDeadlockDetect::DeadlockDetected(void)
{
ASSERT(!"Deadlock detected");
-
- // TODO: Make a crashdump / coredump
-
- // Crash the server intentionally:
- *((volatile int *)0) = 0;
+ abort();
}