From 3e23c6b1128023a94a440b118eabf8df5b33090f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 17 Sep 2017 10:36:07 +0100 Subject: [Feature] Improve subprocesses termination handle --- src/lua/lua_common.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua') 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 */ -- cgit v1.2.3