uhttpd: block SIGCHLD until it is expected (#6957)

SVN-Revision: 20513
This commit is contained in:
Jo-Philipp Wich
2010-03-27 14:31:35 +00:00
parent 27d3adb450
commit 4172149f89
6 changed files with 33 additions and 4 deletions

View File

@@ -452,7 +452,7 @@ void uh_lua_request(struct client *cl, struct http_request *req, lua_State *L)
FD_SET(wfd[1], &writer);
/* wait until we can read or write or both */
if( select(fd_max, &reader,
if( select_intr(fd_max, &reader,
(content_length > -1) ? &writer : NULL, NULL,
(data_sent < 1) ? &timeout : NULL) > 0
) {