Avoid noop_io_until_death() if --msgs2stderr was specified.
authorWayne Davison <wayne@opencoder.net>
Sat, 30 May 2020 12:53:59 +0000 (05:53 -0700)
committerWayne Davison <wayne@opencoder.net>
Sat, 30 May 2020 12:53:59 +0000 (05:53 -0700)
io.c

diff --git a/io.c b/io.c
index e6cfbbda208ceaf7d14cab99cab6e68e0ed1561e..999c34e5441ae9bc1359ef697f70709aae562e67 100644 (file)
--- a/io.c
+++ b/io.c
@@ -915,7 +915,7 @@ void noop_io_until_death(void)
 {
        char buf[1024];
 
-       if (!iobuf.in.buf || !iobuf.out.buf || iobuf.in_fd < 0 || iobuf.out_fd < 0 || kluge_around_eof)
+       if (!iobuf.in.buf || !iobuf.out.buf || iobuf.in_fd < 0 || iobuf.out_fd < 0 || kluge_around_eof || msgs2stderr)
                return;
 
        kluge_around_eof = 2;