package boa
tag 330871 + patch
thanks

Hi, I came across this bug too (on mipsel), saw this bug via google,
and tried patching boa to "check for sendfile() returning ENOSYS" --
turned out to be pretty easy, and works fine for me. The patch below just
makes boa do the same thing it would have if configure hadn't enabled
sendfile support when ENOSYS is returned, so seems pretty safe.

HTH.

Cheers,
aj

diff -urb boa-0.94.14rc20/debian/changelog boa-0.94.14rc20-1.4/debian/changelog
--- boa-0.94.14rc20/debian/changelog    2005-12-31 23:01:59.000000000 +0000
+++ boa-0.94.14rc20-1.4/debian/changelog        2006-07-03 12:44:46.000000000 
+0000
@@ -1,3 +1,11 @@
+boa (0.94.14rc20-1.4) unstable; urgency=low
+
+  * Non Maintainer Upload
+  * pipe.c: Just use io_request() if sendfile() returns ENOSYS (closes:
+    Bug#330871)
+
+ -- Anthony Towns <[EMAIL PROTECTED]>  Mon,  3 Jul 2006 08:43:40 -0400
+
 boa (0.94.14rc20-1.3) unstable; urgency=low
 
   * Non Maintainer Upload
diff -urb boa-0.94.14rc20/src/pipe.c boa-0.94.14rc20-1.4/src/pipe.c
--- boa-0.94.14rc20/src/pipe.c  2005-12-31 23:01:59.000000000 +0000
+++ boa-0.94.14rc20-1.4/src/pipe.c      2006-07-03 12:43:26.000000000 +0000
@@ -190,7 +190,9 @@
                                  &(req->ranges->start),
                                  bytes_to_write);
         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;



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to