diff options
author | Wayne Davison <wayned@samba.org> | 2011-09-12 17:56:23 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-09-12 17:56:23 -0700 |
commit | 847ddaf071002ced679ecafab164692091e8b3c0 (patch) | |
tree | 14b366023eb7f7365f1a459c7240750941a67f60 /io.c | |
parent | c4c5dc68b9259cef9bcab5f8589320d6fde4a5f9 (diff) | |
download | android_external_rsync-847ddaf071002ced679ecafab164692091e8b3c0.tar.gz android_external_rsync-847ddaf071002ced679ecafab164692091e8b3c0.tar.bz2 android_external_rsync-847ddaf071002ced679ecafab164692091e8b3c0.zip |
Make sure other early exit calls can't hang in noop_io_until_death().
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -912,7 +912,7 @@ void noop_io_until_death(void) { char buf[1024]; - if (!iobuf.in.buf || !iobuf.out.buf || iobuf.in_fd == -1 || iobuf.out_fd == -1) + if (!iobuf.in.buf || !iobuf.out.buf || iobuf.in_fd < 0 || iobuf.out_fd < 0 || kluge_around_eof) return; kluge_around_eof = 2; |