uhttpd: remove some dead code
[openwrt/staging/yousong.git] / package / uhttpd / src / uhttpd-lua.c
index e8d932b47b4246affc58db0d68f7cc71aeb0b125..0b91b348f4087f730ae1dd7b14ee9f3483be1336 100644 (file)
@@ -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)))
        {