From 847ddaf071002ced679ecafab164692091e8b3c0 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Mon, 12 Sep 2011 17:56:23 -0700 Subject: Make sure other early exit calls can't hang in noop_io_until_death(). --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index b4e0a682..23e7822e 100644 --- a/io.c +++ b/io.c @@ -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; -- cgit v1.2.3