added abort to DeadlockDetector to generate core dumps on failure
This commit is contained in:
parent
5d2311bcff
commit
7135bdf591
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user