X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=1f7791094a33a961c193c273a4c09e9b16f2be07;hp=43e194dbca5d672936997ac97b94820892ca5a12;hb=41d12a1e75017848620bd3670d9863aea63b62fb;hpb=b59e841036a107b52a0221e48d7e05f86da92979 diff --git a/stdout.c b/stdout.c index 43e194db..1f779109 100644 --- a/stdout.c +++ b/stdout.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2006 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file stdout.c Functions that deal with writing to stdout. */ @@ -96,6 +92,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); }