diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 18:51:12 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-08 18:51:12 +0100 |
commit | 4f6bfc0564efc37b37b8a66b0d54e42266517f3c (patch) | |
tree | dda0d0f6bed4597a76bb1ee9ab462b409002fe88 /src/libutil | |
parent | e1b003495e9ad6748db23f0f7cb75de4d0e26f1b (diff) | |
download | rspamd-4f6bfc0564efc37b37b8a66b0d54e42266517f3c.tar.gz rspamd-4f6bfc0564efc37b37b8a66b0d54e42266517f3c.zip |
Handle SIGIO/SIGPOLL.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.c | 7 |
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; |