[package] uhttpd: block SIGCHLD until it is expected (#6957)
[openwrt-10.03/.git] / package / uhttpd / src / uhttpd-lua.c
index fcbdc6482543864e41937450fd79c51eb564a130..b3f3cb498f75cb5e10ca8ef25b3eeaa5410d5e55 100644 (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
                                ) {