Readded unfindes Boa 0.94.14rc21
[project/luci.git] / libs / sgi-webuci / boa-patches / 020-sendfile_ENOSYS.patch
1 Index: boa-0.94.14rc21/src/pipe.c
2 ===================================================================
3 --- boa-0.94.14rc21.orig/src/pipe.c     2007-08-08 20:03:29.000000000 -0400
4 +++ boa-0.94.14rc21/src/pipe.c  2007-08-08 20:03:45.000000000 -0400
5 @@ -215,7 +215,9 @@
6         }
7         req->ranges->start = sendfile_offset;
8          if (bytes_written < 0) {
9 -            if (errno == EWOULDBLOCK || errno == EAGAIN) {
10 +           if (errno == ENOSYS) {
11 +               return io_shuffle(req);
12 +           } else if (errno == EWOULDBLOCK || errno == EAGAIN) {
13                  return -1;          /* request blocked at the pipe level, but keep going */
14              } else if (errno == EINTR) {
15                  goto retrysendfile;