From de407c03d2f424829fc1af3db3260286788bd619 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 11 Sep 2011 11:07:02 -0700 Subject: Fix a potential hang on an empty file list. Fixes bug 8423. --- io.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'io.c') diff --git a/io.c b/io.c index 7cb3be13..b4e0a682 100644 --- a/io.c +++ b/io.c @@ -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. */ -- cgit v1.2.3