aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua_worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-24 08:13:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-07-24 08:13:45 +0100
commit6b71fcb72fce2945cca43cc2acc141b507655273 (patch)
tree66b21dc2ce49ad60eea6eb01ab18a2fbbb0a84bf /src/lua_worker.c
parent55159a5a8ef66e1a05fd93095623d90056c22fcd (diff)
downloadrspamd-6b71fcb72fce2945cca43cc2acc141b507655273.tar.gz
rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.zip
[Rework] Run post-loads when all initialization is completed
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r--src/lua_worker.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c
index e5733058a..d5b651aaf 100644
--- a/src/lua_worker.c
+++ b/src/lua_worker.c
@@ -352,8 +352,7 @@ start_lua_worker (struct rspamd_worker *worker)
ctx->ev_base = rspamd_prepare_worker (worker,
"lua_worker",
- lua_accept_socket,
- TRUE);
+ lua_accept_socket);
L = worker->srv->cfg->lua_state;
ctx->L = L;
@@ -392,9 +391,8 @@ start_lua_worker (struct rspamd_worker *worker)
exit (EXIT_SUCCESS);
}
- /* Maps events */
- rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver, 0);
-
+ rspamd_lua_run_postloads (ctx->cfg->lua_state, ctx->cfg, ctx->ev_base,
+ worker);
event_base_loop (ctx->ev_base, 0);
rspamd_worker_block_signals ();