diff options
author | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-11 00:01:24 +0100 |
---|---|---|
committer | Tycho Bickerstaff <work.tycho@gmail.com> | 2013-12-11 00:01:24 +0100 |
commit | d9a429ec6463818b50f3c930732abaa29e0af558 (patch) | |
tree | b1024f5001265301ed1ca6e23bd6d5c325e825fd /src/DeadlockDetect.cpp | |
parent | fixed unused expression warnings in blockFire (diff) | |
parent | Merge branch 'master' of https://github.com/mc-server/MCServer (diff) | |
download | cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar.gz cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar.bz2 cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar.lz cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar.xz cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.tar.zst cuberite-d9a429ec6463818b50f3c930732abaa29e0af558.zip |
Diffstat (limited to 'src/DeadlockDetect.cpp')
-rw-r--r-- | src/DeadlockDetect.cpp | 7 |
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(); } |