X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdout.c;h=b26661594a940373fe5e6bd20e67c54607e70b4c;hp=86c2d33b882363711e9ba69a5ee7612d0187a334;hb=5924e7281692044588e6df713c5d6c694ddd69f1;hpb=06cf1943be32153d075ea90a5da12ac93ab2e90a diff --git a/stdout.c b/stdout.c index 86c2d33b..b2666159 100644 --- a/stdout.c +++ b/stdout.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2014 Andre Noll + * Copyright (C) 2006 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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); }