X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=7b70690b9a5f80626ad979595ee211bcf0037ded;hp=a66ad469c2d648a875d4e8f1ce6917606a18967d;hb=f0919ce4c6ca831e5a623ce2de9b9dd9f497cff1;hpb=093dda1824631372587d107d64601389027c6187 diff --git a/stdin.c b/stdin.c index a66ad469..7b70690b 100644 --- a/stdin.c +++ b/stdin.c @@ -1,12 +1,11 @@ /* - * Copyright (C) 2006-2014 Andre Noll + * Copyright (C) 2006 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file stdin.c Functions that deal with reading from stdin. */ -#include #include #include "para.h" @@ -115,6 +114,7 @@ void stdin_task_register(struct stdin_task *sit, struct sched *s) exit(EXIT_FAILURE); } sit->fd_flags = ret; - sit->must_set_nonblock_flag = (sit->fd_flags & O_NONBLOCK) == 0; + sit->must_set_nonblock_flag = (sit->fd_flags & O_NONBLOCK) == 0 + && !isatty(STDIN_FILENO); sit->task = task_register(&ti, s); }