diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-31 17:03:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-10-31 17:03:00 +0000 |
commit | 098b9ae4891070d2951094a0324fedd835db74bb (patch) | |
tree | 8490a8214305202bc25d52f29a3c78c5e5fa4582 /src/log_helper.c | |
parent | 58fe553881315e2b8fea2ef3e37eaaea21932168 (diff) | |
download | rspamd-098b9ae4891070d2951094a0324fedd835db74bb.tar.gz rspamd-098b9ae4891070d2951094a0324fedd835db74bb.zip |
[CritFix] Fix workers scripts by sharing workers configs
Diffstat (limited to 'src/log_helper.c')
-rw-r--r-- | src/log_helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/log_helper.c b/src/log_helper.c index 96075ea47..74541f62b 100644 --- a/src/log_helper.c +++ b/src/log_helper.c @@ -173,6 +173,8 @@ start_log_helper (struct rspamd_worker *worker) { struct log_helper_ctx *ctx = worker->ctx; gssize r = -1; + gint nscripts = 0; + struct rspamd_worker_lua_script *tmp; static struct rspamd_srv_command srv_cmd; ctx->ev_base = rspamd_prepare_worker (worker, @@ -183,6 +185,9 @@ start_log_helper (struct rspamd_worker *worker) ctx->scripts = worker->cf->scripts; ctx->L = ctx->cfg->lua_state; + DL_COUNT (worker->cf->scripts, tmp, nscripts); + msg_info ("started log_helper worker with %d scripts", nscripts); + #ifdef HAVE_SOCK_SEQPACKET r = socketpair (AF_LOCAL, SOCK_SEQPACKET, 0, ctx->pair); #endif |