From: Vsevolod Stakhov Date: Fri, 21 Jun 2019 11:11:17 +0000 (+0100) Subject: [Minor] Init event loop in rspamadm X-Git-Tag: 2.0~755^2~13 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b862f3717beee6bf735cfd89a51f41440b26bd0c;p=rspamd.git [Minor] Init event loop in rspamadm --- 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);