diff --git a/package/uhttpd/src/uhttpd-cgi.c b/package/uhttpd/src/uhttpd-cgi.c
index 5e445ca372521023ad9eba92952c56a4817ba13f..ee1b80cc7fe0c7a3fef38bade078d9c123447677 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 e8d932b47b4246affc58db0d68f7cc71aeb0b125..0b91b348f4087f730ae1dd7b14ee9f3483be1336 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)))
 	{