diff options
author | Wayne Davison <wayned@samba.org> | 2011-09-11 11:07:02 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-09-11 11:08:14 -0700 |
commit | de407c03d2f424829fc1af3db3260286788bd619 (patch) | |
tree | 7b93a742bffebe723888d0af697bdc575131416e /io.c | |
parent | c1005fb256ecd764caf23f54080ffbcf550b78f2 (diff) | |
download | android_external_rsync-de407c03d2f424829fc1af3db3260286788bd619.tar.gz android_external_rsync-de407c03d2f424829fc1af3db3260286788bd619.tar.bz2 android_external_rsync-de407c03d2f424829fc1af3db3260286788bd619.zip |
Fix a potential hang on an empty file list.
Fixes bug 8423.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -912,6 +912,9 @@ void noop_io_until_death(void) { char buf[1024]; + if (!iobuf.in.buf || !iobuf.out.buf || iobuf.in_fd == -1 || iobuf.out_fd == -1) + return; + kluge_around_eof = 2; /* Setting an I/O timeout ensures that if something inexplicably weird * happens, we won't hang around forever. */ |