Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74f5442
)
don't try to write errors to a dead socket
author
Andrew Tridgell
<tridge@samba.org>
Sun, 23 Jan 2000 01:11:43 +0000
(
01:11
+0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 23 Jan 2000 01:11:43 +0000
(
01:11
+0000)
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
9e2a475
..
4fd1a13
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-112,6
+112,7
@@
static int read_timeout(int fd, char *buf, int len)
continue;
}
+
if (n == 0) {
if (eof_error) {
rprintf(FERROR,"unexpected EOF in read_timeout\n");
@@
-119,6
+120,9
@@
static int read_timeout(int fd, char *buf, int len)
exit_cleanup(RERR_STREAMIO);
}
+ /* this prevents us trying to write errors on a dead socket */
+ io_multiplexing_out = 0;
+
rprintf(FERROR,"read error: %s\n", strerror(errno));
exit_cleanup(RERR_STREAMIO);
}