catch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly

pull/134/head
tcatm 14 years ago
parent 1c09a4adb2
commit c3f140033c

@ -120,6 +120,9 @@ bool AppInit2(int argc, char* argv[])
sigemptyset(&sa.sa_mask);
sa.sa_flags = 0;
sigaction(SIGTERM, &sa, NULL);
sigaction(SIGINT, &sa, NULL);
sigaction(SIGHUP, &sa, NULL);
sigaction(SIGSEGV, &sa, NULL);
#endif
//

Loading…
Cancel
Save