mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 21:34:17 -04:00
Make sure defer_forwarding_messages is set when msg_fd_in gets
set to -1.
This commit is contained in:
1 parent
c5b6e57a13
commit
be21e29c35
1 file changed
+2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user