From def4f750bc79d88963567c976813666a4dd706e7 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Thu, 29 Dec 2005 20:49:46 +0000 Subject: * Added errors when SDL_net or libcrypto are not found. * Reset SEGV signal handling after SDL initialisation to allow cores to be dumped. * Added script that perpetually runs the server and automatically saves a backtrace and restarts when it crashes. --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 48191e83..4f31f0c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -22,6 +22,7 @@ #include #include +#include #include #include #include @@ -135,6 +136,8 @@ void initialize() exit(1); } + signal(SIGSEGV, SIG_DFL); + // set SDL to quit on exit. atexit(SDL_Quit); -- cgit v1.2.3-60-g2f50