diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 22:38:34 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-15 22:38:34 +0100 |
commit | d48900e14e41e1b767af6f8461105d5239c3c93e (patch) | |
tree | 48d586a48c980c002fde3e64f2e9db729f46fb0d /src/lua_worker.c | |
parent | 665971625a939d5f8e5f41e99636f4e74ebca5d3 (diff) | |
download | rspamd-d48900e14e41e1b767af6f8461105d5239c3c93e.tar.gz rspamd-d48900e14e41e1b767af6f8461105d5239c3c93e.zip |
Block signals when exiting event loop
Diffstat (limited to 'src/lua_worker.c')
-rw-r--r-- | src/lua_worker.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua_worker.c b/src/lua_worker.c index 7e15c632a..1e37419a2 100644 --- a/src/lua_worker.c +++ b/src/lua_worker.c @@ -394,6 +394,8 @@ start_lua_worker (struct rspamd_worker *worker) rspamd_map_watch (worker->srv->cfg, ctx->ev_base); event_base_loop (ctx->ev_base, 0); + rspamd_worker_block_signals (); + luaL_unref (L, LUA_REGISTRYINDEX, ctx->cbref_accept); if (ctx->cbref_fin != 0) { /* Call finalizer function */ |