Make sure other early exit calls can't hang in noop_io_until_death().

This commit is contained in:
Wayne Davison committed 2011-09-12 17:56:23 -07:00
1 parent c4c5dc68b9
commit 847ddaf071
1 file changed
+1 -1
+1 -1
View File
@@ -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;