uhttpd: remove some dead code

SVN-Revision: 32028
master
Jo-Philipp Wich 13 years ago
parent 2cf72776d8
commit 23eaea57ad
  1. 8
      package/uhttpd/src/uhttpd-cgi.c
  2. 8
      package/uhttpd/src/uhttpd-lua.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)))
{

@ -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)))
{

Loading…
Cancel
Save