]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Remove signal events before removing of the ev_loop
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 8 Jul 2019 13:20:38 +0000 (14:20 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 8 Jul 2019 13:20:38 +0000 (14:20 +0100)
src/lua/lua_worker.c

index 273bcb63be89980e41e51ef97570d849cae69f07..c3c9e729e4fa2180331140b865c57806c882090f 100644 (file)
@@ -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);