diff options
author | tcatm <tcatm@gawab.com> | 2011-03-23 18:27:30 +0100 |
---|---|---|
committer | tcatm <tcatm@gawab.com> | 2011-03-23 18:27:30 +0100 |
commit | c3f140033c531e9c5eae920c16fe2ecc80faa1a2 (patch) | |
tree | b4bae2d1ad98c706cd590f3bf0fc27538c2a694f | |
parent | 1c09a4adb20aed76dd5f07051c605ffd56a093d6 (diff) |
catch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly
-rw-r--r-- | init.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 // |