diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-09 17:35:44 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-09 17:35:44 +0100 |
commit | c1a9b4988a861fb6087fc76ca549d4c364949ef0 (patch) | |
tree | e7b736898677d69180e704d7d28e8d9df6b34671 /src/lua_worker.c | |
parent | f1a8608981442bda6ffccafc8f1e6f72dc556ff4 (diff) | |
download | rspamd-c1a9b4988a861fb6087fc76ca549d4c364949ef0.tar.gz rspamd-c1a9b4988a861fb6087fc76ca549d4c364949ef0.zip |
Remove global rspamd_main.
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r-- | src/lua_worker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c index b2a3ffc19..7e15c632a 100644 --- a/src/lua_worker.c +++ b/src/lua_worker.c @@ -43,7 +43,7 @@ /* 60 seconds for worker's IO */ #define DEFAULT_WORKER_IO_TIMEOUT 60000 -extern struct rspamd_main *rspamd_main; + gpointer init_lua_worker (struct rspamd_config *cfg); void start_lua_worker (struct rspamd_worker *worker); @@ -409,7 +409,7 @@ start_lua_worker (struct rspamd_worker *worker) luaL_unref (L, LUA_REGISTRYINDEX, ctx->cbref_fin); } - rspamd_log_close (rspamd_main->logger); + rspamd_log_close (worker->srv->logger); exit (EXIT_SUCCESS); } |