summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-05 18:09:54 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-11-05 18:09:54 +0300
commit9b6b141a936bb7ba89c431176fa53a5878b8a9bd (patch)
treebfe875c900f2e865ece4d00f223b7529a86dc625 /src/controller.c
parentd78ac2d1060c2b049b4eebc176d3823f82f9ea76 (diff)
downloadrspamd-9b6b141a936bb7ba89c431176fa53a5878b8a9bd.tar.gz
rspamd-9b6b141a936bb7ba89c431176fa53a5878b8a9bd.zip
* Add more advanced signal processing routine
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c
index 64ef75d59..d59690da2 100644
--- a/src/controller.c
+++ b/src/controller.c
@@ -86,9 +86,13 @@ extern rspamd_hash_t *counters;
static gboolean controller_write_socket (void *arg);
-static
- void
+#ifndef HAVE_SA_SIGINFO
+static void
sig_handler (int signo)
+#else
+static void
+sig_handler (int signo, siginfo_t *info, void *unused)
+#endif
{
switch (signo) {
case SIGINT: