projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c91e3e7
)
* exit citserver on SIG_USR1 instantly, so we have a clean exit hook for profiling...
author
Wilfried Göesgens
<willi@citadel.org>
Sun, 14 Mar 2010 22:31:07 +0000
(22:31 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Sun, 14 Mar 2010 22:31:07 +0000
(22:31 +0000)
citadel/sysdep.c
patch
|
blob
|
history
diff --git
a/citadel/sysdep.c
b/citadel/sysdep.c
index 135e1c1ee049c01ab4eed7dd0284b6cadf3444f1..f51801c7736812e65e3b130a48b322214ad65fcb 100644
(file)
--- a/
citadel/sysdep.c
+++ b/
citadel/sysdep.c
@@
-169,6
+169,10
@@
static RETSIGTYPE signal_cleanup(int signum) {
}
}
+static RETSIGTYPE signal_exit(int signum) {
+ exit(1);
+}
+
/*
@@
-222,6
+226,7
@@
void init_sysdep(void) {
signal(SIGQUIT, signal_cleanup);
signal(SIGHUP, signal_cleanup);
signal(SIGTERM, signal_cleanup);
+ signal(SIGUSR1, signal_exit);
// signal(SIGSEGV, signal_cleanup); commented out because
// signal(SIGILL, signal_cleanup); we want core dumps
// signal(SIGBUS, signal_cleanup);