]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Init event loop in rspamadm
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 21 Jun 2019 11:11:17 +0000 (12:11 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 22 Jun 2019 09:57:29 +0000 (10:57 +0100)
src/rspamadm/rspamadm.c

index 5908f77f98720854b0f32ca1ec17be11fb809078..36b06ade5df41ca069c247d80928ad56b08f3620 100644 (file)
@@ -21,6 +21,7 @@
 #include "lua/lua_thread_pool.h"
 #include "lua_ucl.h"
 #include "unix-std.h"
+#include "contrib/libev/ev.h"
 
 #ifdef HAVE_LIBUTIL_H
 #include <libutil.h>
@@ -434,6 +435,8 @@ main (gint argc, gchar **argv, gchar **env)
                        rspamd_main->server_pool);
        (void) rspamd_log_open (rspamd_main->logger);
 
+       rspamd_main->event_loop = ev_default_loop (EVFLAG_SIGNALFD|EVBACKEND_ALL);
+
        resolver = rspamd_dns_resolver_init (rspamd_main->logger,
                        rspamd_main->event_loop,
                        cfg);