From 40e43495ce35c06ac8379cc062673ac742dea592 Mon Sep 17 00:00:00 2001 From: Jerry DeLisle Date: Thu, 27 Mar 2008 05:30:18 +0000 Subject: [PATCH] unix.c (fd_close): Do not close STDIN. 2008-03-26 Jerry DeLisle * io/unix.c (fd_close): Do not close STDIN. From-SVN: r133630 --- libgfortran/ChangeLog | 4 ++++ libgfortran/io/unix.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 6ac6dfe89d0..892a2456ac7 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2008-03-26 Jerry DeLisle + + * io/unix.c (fd_close): Do not close STDIN. + 2007-03-23 Thomas Koenig buffer != NULL && s->buffer != s->small_buffer) free_mem (s->buffer); - if (s->fd != STDOUT_FILENO && s->fd != STDERR_FILENO) + if (s->fd != STDOUT_FILENO && s->fd != STDERR_FILENO && s->fd != STDIN_FILENO) { if (close (s->fd) < 0) return FAILURE; -- 2.30.2