]> source.dussan.org Git - rspamd.git/commitdiff
Clean pipes for terminated workers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Dec 2015 02:02:04 +0000 (02:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 16 Dec 2015 02:02:04 +0000 (02:02 +0000)
src/rspamd.c

index 004e726b653bc3df1141b0603243c7931813ccb5..57a7648d65c6e1579386db31a08a6bccc6a3d784 100644 (file)
@@ -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 {