X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=9fc20ed0253d91f9ecb3fe3591843feb48b82eb3;hp=43e194dbca5d672936997ac97b94820892ca5a12;hb=8eb77a20423c3dcc44c4584a082e981391272cb2;hpb=80541d0f045e1ed57332800eff9832e0a5b72ddf diff --git a/stdout.c b/stdout.c index 43e194db..9fc20ed0 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); }