commit 3311007: [Minor] Remove signal events before removing of the ev_loop

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jul 8 13:28:06 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-07-08 14:20:38 +0100
URL: https://github.com/rspamd/rspamd/commit/331100791bc163a12946cb41f603cb8386295f47

[Minor] Remove signal events before removing of the ev_loop

---
 src/lua/lua_worker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lua/lua_worker.c b/src/lua/lua_worker.c
index 273bcb63b..c3c9e729e 100644
--- a/src/lua/lua_worker.c
+++ b/src/lua/lua_worker.c
@@ -626,9 +626,9 @@ lua_worker_spawn_process (lua_State *L)
 		close (cbdata->sp[0]);
 		/* Here we assume that we can block on writing results */
 		rspamd_socket_blocking (cbdata->sp[1]);
+		g_hash_table_remove_all (w->signal_events);
 		ev_loop_destroy (cbdata->event_loop);
 		cbdata->event_loop = ev_loop_new (EVFLAG_SIGNALFD);
-		g_hash_table_remove_all (w->signal_events);
 		rspamd_worker_unblock_signals ();
 		rspamd_lua_execute_lua_subprocess (L, cbdata);
 


More information about the Commits mailing list