From 1c63af0e85b3271096ec9629c2bb29cf4861aa66 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sat, 2 Jun 2012 15:08:54 +0000 Subject: [PATCH] [package] uhttpd: remove some dead code SVN-Revision: 32028 --- package/uhttpd/src/uhttpd-cgi.c | 8 +------- package/uhttpd/src/uhttpd-lua.c | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c index 5e445ca372..ee1b80cc7f 100644 --- a/package/uhttpd/src/uhttpd-cgi.c +++ b/package/uhttpd/src/uhttpd-cgi.c @@ -283,13 +283,7 @@ static bool uh_cgi_socket_cb(struct client *cl) } } - /* child has been marked dead by timeout or child handler, bail out */ - if (false && cl->dead) - { - D("CGI: Child(%d) is marked dead, returning\n", state->cl->proc.pid); - goto out; - } - + /* got EOF or read error from child */ if ((len == 0) || ((errno != EAGAIN) && (errno != EWOULDBLOCK) && (len == -1))) { diff --git a/package/uhttpd/src/uhttpd-lua.c b/package/uhttpd/src/uhttpd-lua.c index e8d932b47b..0b91b348f4 100644 --- a/package/uhttpd/src/uhttpd-lua.c +++ b/package/uhttpd/src/uhttpd-lua.c @@ -316,13 +316,7 @@ static bool uh_lua_socket_cb(struct client *cl) state->data_sent = true; } - /* child has been marked dead by timeout or child handler, bail out */ - if (false && cl->dead) - { - D("Lua: Child(%d) is marked dead, returning\n", state->cl->proc.pid); - goto out; - } - + /* got EOF or read error from child */ if ((len == 0) || ((errno != EAGAIN) && (errno != EWOULDBLOCK) && (len == -1))) { -- 2.30.2