summaryrefslogtreecommitdiffstats
path: root/src/rspamd.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-16 02:02:04 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-16 02:02:04 +0000
commit6d6fd9250e371f58435810e250a0dedb8166ee01 (patch)
treedb2de44fa6293913c8287fbcc103ed2ecd50b0e0 /src/rspamd.c
parent77f3c9257ea2e61676675fed7500cd86dea68f7d (diff)
downloadrspamd-6d6fd9250e371f58435810e250a0dedb8166ee01.tar.gz
rspamd-6d6fd9250e371f58435810e250a0dedb8166ee01.zip
Clean pipes for terminated workers
Diffstat (limited to 'src/rspamd.c')
-rw-r--r--src/rspamd.c3
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 {