summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-01-20 19:56:03 +0000
committerWayne Davison <wayned@samba.org>2007-01-20 19:56:03 +0000
commitbe21e29c351698b3f86caf13e446c5e4b19c9fde (patch)
tree87e81fd1849f22471c8bdd8b89087f04a08bda2b /io.c
parentc5b6e57a136d5bdc1eff9ef11e69c7093065920e (diff)
downloadrsync-be21e29c351698b3f86caf13e446c5e4b19c9fde.tar.gz
Make sure defer_forwarding_messages is set when msg_fd_in gets
set to -1.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index e23c69a8..915d21db 100644
--- 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;
}