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