X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=b26661594a940373fe5e6bd20e67c54607e70b4c;hp=29db2b7e3e28f050d72577a6d8b533c18ed54be8;hb=5924e7281692044588e6df713c5d6c694ddd69f1;hpb=f167629b3191c57a6b691cd2a6af04a45a74ccb0 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); }