diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 14:20:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-07-08 14:20:38 +0100 |
commit | 331100791bc163a12946cb41f603cb8386295f47 (patch) | |
tree | 59760a83ce318b4032e6a2c8b13b295892e67336 /src/lua/lua_worker.c | |
parent | 9b74e57ad3fb694741fdcf5e27a046fbe99a40f7 (diff) | |
download | rspamd-331100791bc163a12946cb41f603cb8386295f47.tar.gz rspamd-331100791bc163a12946cb41f603cb8386295f47.zip |
[Minor] Remove signal events before removing of the ev_loop
Diffstat (limited to 'src/lua/lua_worker.c')
-rw-r--r-- | src/lua/lua_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |