summaryrefslogtreecommitdiffstats
path: root/lib/libfetch
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-03-07 05:12:14 +0000
committerdes <des@FreeBSD.org>2001-03-07 05:12:14 +0000
commit79952149e8d94375de440960fe74166ef8f12919 (patch)
treebf569dcf41e9ad6d63a15217045db91c9c4ff058 /lib/libfetch
parente24b7be7d42caffb4392cb48321922e6be465a76 (diff)
downloadFreeBSD-src-79952149e8d94375de440960fe74166ef8f12919.zip
FreeBSD-src-79952149e8d94375de440960fe74166ef8f12919.tar.gz
Don't remember an EINTR, since the caller may want to restart the call.
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/ftp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c
index 713a856..02b8f73 100644
--- a/lib/libfetch/ftp.c
+++ b/lib/libfetch/ftp.c
@@ -348,7 +348,8 @@ _ftp_readfn(void *v, char *buf, int len)
io->eof = 1;
return _ftp_closefn(v);
}
- io->err = errno;
+ if (errno != EINTR)
+ io->err = errno;
return -1;
}
@@ -374,7 +375,8 @@ _ftp_writefn(void *v, const char *buf, int len)
w = write(io->dsd, buf, len);
if (w >= 0)
return w;
- io->err = errno;
+ if (errno != EINTR)
+ io->err = errno;
return -1;
}
OpenPOWER on IntegriCloud