1
0

added abort to DeadlockDetector to generate core dumps on failure

This commit is contained in:
Tycho Bickerstaff 2013-12-10 16:59:45 +00:00
parent 5d2311bcff
commit 7135bdf591

View File

@ -7,6 +7,7 @@
#include "DeadlockDetect.h" #include "DeadlockDetect.h"
#include "Root.h" #include "Root.h"
#include "World.h" #include "World.h"
# include <cstdlib>
@ -137,11 +138,7 @@ void cDeadlockDetect::CheckWorldAge(const AString & a_WorldName, Int64 a_Age)
void cDeadlockDetect::DeadlockDetected(void) void cDeadlockDetect::DeadlockDetected(void)
{ {
ASSERT(!"Deadlock detected"); ASSERT(!"Deadlock detected");
abort();
// TODO: Make a crashdump / coredump
// Crash the server intentionally:
*((volatile int *)0) = 0;
} }