Code: Select all
void CatchSignal(int sig_num) {
// In rare cases this can be called after the log system is shut down causing a deadlock or crash
// when the world shuts down, if this happens again comment out the LogWrite and uncomment the printf
if(last_signal != sig_num)
LogWrite(WORLD__WARNING, 0, "World", "Got signal %i", sig_num);
//printf("Got signal %i", sig_num);
else {
LogWrite(WORLD__WARNING, 0, "World", "Got signal %i", sig_num);
Sleep(10);
}
last_signal = sig_num;
RunLoops = false;
}For now, I will put EQ2 DB Project into Debug (gdb) and try and see what's crashing, because it appears to be every time someone logs in and does something.