From keithp at keithp.com Mon May 19 13:25:21 2008 From: keithp at keithp.com (Keith Packard) Date: Mon, 19 May 2008 13:25:21 -0700 (PDT) Subject: [Nickle] nickle: Branch 'master' Message-ID: <20080519202521.8EBCE1300A3@keithp.com> io.c | 2 ++ 1 file changed, 2 insertions(+) New commits: commit 74d032db530e2441f47b68549d18a70956ddf601 Author: Keith Packard Date: Mon May 19 13:22:11 2008 -0700 Non-interactive stdin is always available for reading. Failing to set the 'stdinOwned' flag meant that you could never read from stdin which wasn't a terminal. Oops. diff --git a/io.c b/io.c index d5c218a..07abe4a 100644 --- a/io.c +++ b/io.c @@ -78,6 +78,8 @@ IoStart (void) FileSetFd (0); } } + else + stdinOwned = True; } void