diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-27 14:31:35 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-27 14:31:35 +0000 |
commit | c70e0b18681b3f57ff97d2d5dda13e39865749f9 (patch) | |
tree | 7252c0b82a50c6c5aee2bd61487b77451cfc9deb /uhttpd-lua.c | |
parent | 8c6ecc6ea22b74c0fae6375efcbf680ad9e6977a (diff) | |
download | uhttpd-c70e0b18681b3f57ff97d2d5dda13e39865749f9.tar.gz |
[package] uhttpd: block SIGCHLD until it is expected (#6957)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/package/uhttpd/src@20513 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'uhttpd-lua.c')
-rw-r--r-- | uhttpd-lua.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uhttpd-lua.c b/uhttpd-lua.c index fcbdc64..b3f3cb4 100644 --- a/uhttpd-lua.c +++ b/uhttpd-lua.c @@ -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 ) { |