X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=9408235a045a6767e2acf443208d95196990d379;hp=a4e81bd3d9828d67a77bce09e905ea1dc7bc1d47;hb=d4603bf234d23adb56b208efb90ce66772c4ef5b;hpb=4d9d588c5df359c3c5f279fbfd4ea51d3a2afc87 diff --git a/stdin.c b/stdin.c index a4e81bd3..9408235a 100644 --- a/stdin.c +++ b/stdin.c @@ -1,12 +1,7 @@ -/* - * Copyright (C) 2006-2014 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2006 Andre Noll , see file COPYING. */ /** \file stdin.c Functions that deal with reading from stdin. */ -#include #include #include "para.h" @@ -115,6 +110,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); }