From 51ecc24ddbc2a6bed20856df8614ebd4739e2197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Wed, 6 Jan 2010 17:03:57 +0100 Subject: [PATCH] Reenable child in/err pipes after fcgi con close --- fcgi-cgi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fcgi-cgi.c b/fcgi-cgi.c index 65befbd..5dd00fd 100644 --- a/fcgi-cgi.c +++ b/fcgi-cgi.c @@ -477,6 +477,8 @@ static void fcgi_cgi_reset_connection(fastcgi_connection *fcon) { fcgi_cgi_child_free(cld); } else { fcgi_cgi_child_close_write(cld); + if (-1 != cld->pipe_in) ev_io_start(cld->srv->loop, &cld->pipe_in_watcher); + if (-1 != cld->pipe_err) ev_io_start(cld->srv->loop, &cld->pipe_err_watcher); cld->aborted_id = cld->srv->aborted_pending_childs->len; g_ptr_array_add(cld->srv->aborted_pending_childs, cld); }