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:
c5b6e57
)
Make sure defer_forwarding_messages is set when msg_fd_in gets
author
Wayne Davison
<wayned@samba.org>
Sat, 20 Jan 2007 19:56:03 +0000
(19:56 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 20 Jan 2007 19:56:03 +0000
(19:56 +0000)
set to -1.
io.c
patch
|
blob
|
blame
|
history
diff --git
a/io.c
b/io.c
index
e23c69a
..
915d21d
100644
(file)
--- a/
io.c
+++ b/
io.c
@@
-263,6
+263,7
@@
static void read_msg_fd(void)
/* Temporarily disable msg_fd_in. This is needed to avoid looping back
* to this routine from writefd_unbuffered(). */
msg_fd_in = -1;
+ defer_forwarding_messages++;
readfd(fd, buf, 4);
tag = IVAL(buf, 0);
@@
-357,6
+358,7
@@
static void read_msg_fd(void)
exit_cleanup(RERR_STREAMIO);
}
+ defer_forwarding_messages--;
msg_fd_in = fd;
}