Displaying 4 results from an estimated 4 matches for "read_error_fd".
2002 May 22
2
rsync: race condition can cause loss of diagnostic output
[This is a copy of the contents of Debian bug report #147842.]
Package: rsync
Version: 2.5.5-0.2
Severity: normal
Cause
-----
- rsync forks a child which in turn forks a grandchild in
main.c:do_recv().
- Diagnostics written by the grandchild need to be read by the child
using read_error_fd() to be handled properly (with the end result
being that they are seen by the user running rsync).
- select() is used to call read_error_fd() only if there is stuff
waiting to be read by it.
- The select()/read_error_fd() combo is checked when the child reads
and writes.
- read_error_fd() onl...
2002 Sep 25
0
stack overflow
...f=0xbfbff510 "rsync: connection unexpectedly
closed (232684 bytes read so far)\n", len=65) at
io.c:697
#212348 0x80521dc in rwrite (code=FERROR,
buf=0xbfbff510 "rsync: connection unexpectedly
closed (232684 bytes read so far)\n", len=65) at
log.c:245
#212349 0x805668f in read_error_fd () at io.c:119
#212350 0x805688e in read_timeout (fd=3,
buf=0xbfbffb14 "????H????_\004\b\003", len=4) at
io.c:216
#212351 0x80569c2 in read_unbuffered (fd=3,
buf=0xbfbffb14 "????H????_\004\b\003", len=4) at
io.c:274
#212352 0x8056b3a in readfd (fd=3,
buffer=0xbfbffb14...
2001 Aug 22
1
@RSYNC EXIT / @RSYNC EOF
...int io_timeout;
extern struct stats stats;
+
+/** Ignore EOF errors while reading a module listing if the remote
+ version is 24 or less. */
+int kludge_around_eof = False;
+
+
static int io_error_fd = -1;
static void read_loop(int fd, char *buf, int len);
@@ -106,9 +113,46 @@ static void read_error_fd(void)
}
-static int no_flush;
+static void whine_about_eof (void)
+{
+ /**
+ It's almost always an error to get an EOF when we're trying
+ to read from the network, because the protocol is
+ self-terminating.
+
+ However, there is one unfortunate cases where it is not,...
2002 Oct 13
1
rsync 2.5.5 core dump
...,
buf=0xbfbff504 "rsync: connection unexpectedly closed (2525941 bytes read so far)\n", len=66) at io.c:697
#53 0x805217b in rwrite (code=FERROR,
buf=0xbfbff504 "rsync: connection unexpectedly closed (2525941 bytes read so far)\n", len=66) at log.c:245
#54 0x80565bf in read_error_fd () at io.c:119
#55 0x80567d4 in read_timeout (fd=3, buf=0xbfbffb18 "????L???\"?\004\b\003",
len=4) at io.c:216
#56 0x805690a in read_unbuffered (fd=3,
buf=0xbfbffb18 "????L???\"?\004\b\003", len=4) at io.c:274
#57 0x8056a6e in readfd (fd=3, buffer=0xbfbffb18...