diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 02:02:04 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-16 02:02:04 +0000 |
commit | 6d6fd9250e371f58435810e250a0dedb8166ee01 (patch) | |
tree | db2de44fa6293913c8287fbcc103ed2ecd50b0e0 /src/rspamd.c | |
parent | 77f3c9257ea2e61676675fed7500cd86dea68f7d (diff) | |
download | rspamd-6d6fd9250e371f58435810e250a0dedb8166ee01.tar.gz rspamd-6d6fd9250e371f58435810e250a0dedb8166ee01.zip |
Clean pipes for terminated workers
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 004e726b6..57a7648d6 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -885,6 +885,9 @@ rspamd_cld_handler (gint signo, short what, gpointer arg) } event_del (&cur->srv_ev); + /* We also need to clean descriptors left */ + close (cur->control_pipe[0]); + close (cur->srv_pipe[0]); g_free (cur); } else { |