X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;fp=stdout.c;h=b26661594a940373fe5e6bd20e67c54607e70b4c;hp=29db2b7e3e28f050d72577a6d8b533c18ed54be8;hb=86595f65b445fb587489c863e93ad2b2337d7497;hpb=ce9c411a5bee664ea2bbe5d4614b81830a14a41b diff --git a/stdout.c b/stdout.c index 29db2b7e..b2666159 100644 --- 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); }