aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 10:36:07 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-17 10:36:07 +0100
commit3e23c6b1128023a94a440b118eabf8df5b33090f (patch)
tree300824b9de818e5f4ddbcb64d1bb8b0d73a1a567 /src/lua
parent609d4f862202c43241fdab06b0795db6281ca3f7 (diff)
downloadrspamd-3e23c6b1128023a94a440b118eabf8df5b33090f.tar.gz
rspamd-3e23c6b1128023a94a440b118eabf8df5b33090f.zip
[Feature] Improve subprocesses termination handle
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 2aed2f7a9..b72c80a15 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -1695,6 +1695,8 @@ lua_worker_spawn_process (lua_State *L)
/* Here we assume that we can block on writing results */
rspamd_socket_blocking (cbdata->sp[1]);
event_reinit (cbdata->ev_base);
+ g_hash_table_remove_all (w->signal_events);
+ rspamd_worker_unblock_signals ();
rspamd_lua_execute_lua_subprocess (L, cbdata);
/* Wait for parent to reply and exit */