X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=stdin.c;h=9408235a045a6767e2acf443208d95196990d379;hp=e5c40bcb092a1faa59a91a33bd2d7b1975f1f3e7;hb=4643fd6eeee81acc0e82e47e7895a3111775bbba;hpb=e9b00a14a4653d767a9d0fe885aa0b6d56c42180 diff --git a/stdin.c b/stdin.c index e5c40bcb..9408235a 100644 --- a/stdin.c +++ b/stdin.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 stdin.c Functions that deal with reading from stdin. */ @@ -114,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); }