diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 05:12:14 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2001-03-07 05:12:14 +0000 |
commit | e238d2a8da3c09a9e4a425ed291afaddb779a108 (patch) | |
tree | fd48d5322a48842da5b8ffde988b6cc479ee4b5f /lib/libfetch/ftp.c | |
parent | ff5fb8ad24332b6adf784ee72e38d492a32a1488 (diff) |
Notes
Diffstat (limited to 'lib/libfetch/ftp.c')
-rw-r--r-- | lib/libfetch/ftp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libfetch/ftp.c b/lib/libfetch/ftp.c index 713a85658e4d..02b8f7398aca 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; } |