aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 18:51:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-08 18:51:12 +0100
commit4f6bfc0564efc37b37b8a66b0d54e42266517f3c (patch)
treedda0d0f6bed4597a76bb1ee9ab462b409002fe88 /src/libutil
parente1b003495e9ad6748db23f0f7cb75de4d0e26f1b (diff)
downloadrspamd-4f6bfc0564efc37b37b8a66b0d54e42266517f3c.tar.gz
rspamd-4f6bfc0564efc37b37b8a66b0d54e42266517f3c.zip
Handle SIGIO/SIGPOLL.
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libutil/util.c b/src/libutil/util.c
index bc723464f..b0fe7e766 100644
--- a/src/libutil/util.c
+++ b/src/libutil/util.c
@@ -669,7 +669,12 @@ rspamd_signals_init (struct sigaction *signals, void (*sig_handler)(gint))
sigaddset (&signals->sa_mask, SIGUSR1);
sigaddset (&signals->sa_mask, SIGUSR2);
sigaddset (&signals->sa_mask, SIGALRM);
-
+#ifdef SIGPOLL
+ sigaddset (&signals->sa_mask, SIGPOLL);
+#endif
+#ifdef SIGIO
+ sigaddset (&signals->sa_mask, SIGIO);
+#endif
#ifdef HAVE_SA_SIGINFO
signals->sa_flags = SA_SIGINFO;