diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:13:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-07-24 08:13:45 +0100 |
commit | 6b71fcb72fce2945cca43cc2acc141b507655273 (patch) | |
tree | 66b21dc2ce49ad60eea6eb01ab18a2fbbb0a84bf /src/controller.c | |
parent | 55159a5a8ef66e1a05fd93095623d90056c22fcd (diff) | |
download | rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.tar.gz rspamd-6b71fcb72fce2945cca43cc2acc141b507655273.zip |
[Rework] Run post-loads when all initialization is completed
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/controller.c b/src/controller.c index 2f6fef716..e3f4c5d3a 100644 --- a/src/controller.c +++ b/src/controller.c @@ -3605,8 +3605,7 @@ start_controller_worker (struct rspamd_worker *worker) ctx->ev_base = rspamd_prepare_worker (worker, "controller", - rspamd_controller_accept_socket, - TRUE); + rspamd_controller_accept_socket); msec_to_tv (ctx->timeout, &ctx->io_tv); ctx->start_time = time (NULL); @@ -3802,6 +3801,9 @@ start_controller_worker (struct rspamd_worker *worker) rspamd_map_watch (worker->srv->cfg, ctx->ev_base, ctx->resolver, FALSE); } + rspamd_lua_run_postloads (ctx->cfg->lua_state, ctx->cfg, ctx->ev_base, worker); + + /* Start event loop */ event_base_loop (ctx->ev_base, 0); rspamd_worker_block_signals (); |