git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
1c09a4a
)
catch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly
author
tcatm
<tcatm@gawab.com>
Wed, 23 Mar 2011 17:27:30 +0000 (18:27 +0100)
committer
tcatm
<tcatm@gawab.com>
Wed, 23 Mar 2011 17:27:30 +0000 (18:27 +0100)
init.cpp
patch
|
blob
|
history
diff --git
a/init.cpp
b/init.cpp
index
c0b03c8
..
071d254
100644
(file)
--- a/
init.cpp
+++ b/
init.cpp
@@
-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
//