[package] uhttpd: remove some dead code
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jun 2012 15:08:54 +0000 (15:08 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 2 Jun 2012 15:08:54 +0000 (15:08 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32028 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/uhttpd/src/uhttpd-cgi.c
package/uhttpd/src/uhttpd-lua.c

index 5e445ca..ee1b80c 100644 (file)
@@ -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)))
        {
index e8d932b..0b91b34 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)))
        {