[prev in list] [next in list] [prev in thread] [next in thread]
List: publicfile
Subject: Re: Bug in fetch.c:doit?
From: prj () po ! cwru ! edu (Paul Jarc)
Date: 2005-10-17 17:53:22
Message-ID: m3vezwowrb.fsf () multivac ! cwru ! edu
[Download RAW message or body]
malc <malc@pulsesoft.com> wrote:
> As far as i can see, it will always continue on error.
Agreed. This patch should fix it.
paul
[Attachment #3 (text/x-patch)]
diff -ur publicfile-0.52-orig/fetch.c publicfile-0.52/fetch.c
--- publicfile-0.52-orig/fetch.c 1999-11-09 02:23:24.000000000 -0500
+++ publicfile-0.52/fetch.c 2005-10-17 13:39:41.421336792 -0400
@@ -122,7 +122,7 @@
for (;;) {
r = read(fdfile,inbuf,sizeof inbuf);
if (r == -1) {
- if (errno = error_intr) continue;
+ if (errno == error_intr) continue;
_exit(23);
}
if (r == 0)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic