summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-12-29 20:49:46 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-12-29 20:49:46 +0000
commitdef4f750bc79d88963567c976813666a4dd706e7 (patch)
tree10be6cd08a056d02147b6227226ccaabb206ab28 /src/main.cpp
parente8054adfc5d90cab85a147f0134566f56df7691b (diff)
downloadmanaserv-def4f750bc79d88963567c976813666a4dd706e7.tar.gz
manaserv-def4f750bc79d88963567c976813666a4dd706e7.tar.bz2
manaserv-def4f750bc79d88963567c976813666a4dd706e7.tar.xz
manaserv-def4f750bc79d88963567c976813666a4dd706e7.zip
* 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.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 3 insertions, 0 deletions
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 <cstdlib>
#include <getopt.h>
+#include <signal.h>
#include <iostream>
#include <physfs.h>
#include <SDL.h>
@@ -135,6 +136,8 @@ void initialize()
exit(1);
}
+ signal(SIGSEGV, SIG_DFL);
+
// set SDL to quit on exit.
atexit(SDL_Quit);