aboutsummaryrefslogtreecommitdiff
path: root/fcgi-cgi.c
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2010-01-06 17:03:57 +0100
committerStefan Bühler <stbuehler@web.de>2010-01-06 17:03:57 +0100
commit51ecc24ddbc2a6bed20856df8614ebd4739e2197 (patch)
tree1f528d50d93d34c1a8f215270c3a6611a612d938 /fcgi-cgi.c
parent75eb03e210aaa146b406c8fd722906ac6036b3c0 (diff)
downloadfcgi-cgi-51ecc24ddbc2a6bed20856df8614ebd4739e2197.tar.gz
fcgi-cgi-51ecc24ddbc2a6bed20856df8614ebd4739e2197.zip
Reenable child in/err pipes after fcgi con closev0.1.4
Diffstat (limited to 'fcgi-cgi.c')
-rw-r--r--fcgi-cgi.c2
1 files changed, 2 insertions, 0 deletions
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);
}