aboutsummaryrefslogtreecommitdiff
path: root/init.cpp
diff options
context:
space:
mode:
authorJeff Garzik <[email protected]>2011-03-23 18:28:50 -0400
committerJeff Garzik <[email protected]>2011-03-23 18:28:50 -0400
commit3a47bf72658bedf103dc75fec69d44f21fc668b5 (patch)
tree0a28892ca2327673a5d195a65a8676443e78c43c /init.cpp
parent[locale] Regenerate es, nl binary message catalogs (diff)
parentcatch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly (diff)
downloaddiscoin-3a47bf72658bedf103dc75fec69d44f21fc668b5.tar.xz
discoin-3a47bf72658bedf103dc75fec69d44f21fc668b5.zip
Merge branch 'master' of git://github.com/bitcoin/bitcoin
Diffstat (limited to 'init.cpp')
-rw-r--r--init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.cpp b/init.cpp
index c0b03c877..071d254eb 100644
--- 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
//