X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/dde5b7722603b9818bdea65b4ef00bdbc6fbf9a2..be21e29c351698b3f86caf13e446c5e4b19c9fde:/io.c 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; }