]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - stdout.c
Merge branch 'maint'
[paraslash.git] / stdout.c
index 43e194dbca5d672936997ac97b94820892ca5a12..9fc20ed0253d91f9ecb3fe3591843feb48b82eb3 100644 (file)
--- a/stdout.c
+++ b/stdout.c
@@ -96,6 +96,7 @@ void stdout_task_register(struct stdout_task *sot, struct sched *s)
                exit(EXIT_FAILURE);
        }
        sot->fd_flags = ret;
-       sot->must_set_nonblock_flag = (sot->fd_flags & O_NONBLOCK) == 0;
+       sot->must_set_nonblock_flag = (sot->fd_flags & O_NONBLOCK) == 0
+               && !isatty(STDOUT_FILENO);
        sot->task = task_register(&ti, s);
 }