aboutsummaryrefslogtreecommitdiffstats
path: root/src/log_helper.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/log_helper.c
parent55159a5a8ef66e1a05fd93095623d90056c22fcd (diff)
downloadrspamd-6b71fcb72fce2945cca43cc2acc141b507655273.tar.gz
rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.zip
[Rework] Run post-loads when all initialization is completed
Diffstat (limited to 'src/log_helper.c')
-rw-r--r--src/log_helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/log_helper.c b/src/log_helper.c
index 84e485045..9800ab9d3 100644
--- a/src/log_helper.c
+++ b/src/log_helper.c
@@ -190,8 +190,7 @@ start_log_helper (struct rspamd_worker *worker)
ctx->ev_base = rspamd_prepare_worker (worker,
"log_helper",
- NULL,
- TRUE);
+ NULL);
ctx->cfg = worker->srv->cfg;
ctx->scripts = worker->cf->scripts;
ctx->L = ctx->cfg->lua_state;
@@ -222,6 +221,8 @@ start_log_helper (struct rspamd_worker *worker)
rspamd_srv_send_command (worker, ctx->ev_base, &srv_cmd, ctx->pair[1],
rspamd_log_helper_reply_handler, ctx);
rspamd_mempool_unlock_mutex (worker->srv->start_mtx);
+ rspamd_lua_run_postloads (ctx->cfg->lua_state, ctx->cfg, ctx->ev_base,
+ worker);
event_base_loop (ctx->ev_base, 0);
close (ctx->pair[0]);
rspamd_worker_block_signals ();