commit b862f37: [Minor] Init event loop in rspamadm
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Jun 22 12:14:46 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-21 12:11:17 +0100
URL: https://github.com/rspamd/rspamd/commit/b862f3717beee6bf735cfd89a51f41440b26bd0c
[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 <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);
More information about the Commits
mailing list