mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
catch SIGINT, SIGHUP and SIGSEGV and shutdown cleanly
This commit is contained in:
parent
1c09a4adb2
commit
c3f140033c
3
init.cpp
3
init.cpp
@ -120,6 +120,9 @@ bool AppInit2(int argc, char* argv[])
|
|||||||
sigemptyset(&sa.sa_mask);
|
sigemptyset(&sa.sa_mask);
|
||||||
sa.sa_flags = 0;
|
sa.sa_flags = 0;
|
||||||
sigaction(SIGTERM, &sa, NULL);
|
sigaction(SIGTERM, &sa, NULL);
|
||||||
|
sigaction(SIGINT, &sa, NULL);
|
||||||
|
sigaction(SIGHUP, &sa, NULL);
|
||||||
|
sigaction(SIGSEGV, &sa, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user