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

@@ -376,7 +376,7 @@ void uh_cgi_request(struct client *cl, struct http_request *req, struct path_inf
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,
(header_sent < 1) ? &timeout : NULL) > 0
) {