Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
#if 0 the write exception code for the moment. I need to work out why
[rsync/rsync.git]
/
io.c
diff --git
a/io.c
b/io.c
index
dbe2100
..
0e75f6b
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-252,10
+252,18
@@
static int writefd(int fd,char *buf,int len)
return -1;
if (ret == -1 && got_select) {
return -1;
if (ret == -1 && got_select) {
+ /* hmmm, we got a write select on the fd and then failed to write.
+ Why doesn't that mean that the fd is dead? It doesn't on some
+ systems it seems (eg. IRIX) */
+#if 0
fprintf(FERROR,"write exception\n");
exit_cleanup(1);
fprintf(FERROR,"write exception\n");
exit_cleanup(1);
+#endif
}
}
+ got_select = 0;
+
+
if (ret == -1) {
read_check(buffer_f_in);
if (ret == -1) {
read_check(buffer_f_in);
@@
-269,8
+277,6
@@
static int writefd(int fd,char *buf,int len)
fd_count = buffer_f_in+1;
}
fd_count = buffer_f_in+1;
}
- got_select = 0;
-
tv.tv_sec = BLOCKING_TIMEOUT;
tv.tv_usec = 0;
count = select(fd_count,buffer_f_in == -1? NULL: &r_fds,
tv.tv_sec = BLOCKING_TIMEOUT;
tv.tv_usec = 0;
count = select(fd_count,buffer_f_in == -1? NULL: &r_fds,