From b862f3717beee6bf735cfd89a51f41440b26bd0c Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 21 Jun 2019 12:11:17 +0100 Subject: [PATCH] [Minor] Init event loop in rspamadm --- src/rspamadm/rspamadm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rspamadm/rspamadm.c b/src/rspamadm/rspamadm.c index 5908f77f9..36b06ade5 100644 --- a/src/rspamadm/rspamadm.c +++ b/src/rspamadm/rspamadm.c @@ -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 @@ -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); -- 2.39.5