From: Jerry DeLisle Date: Thu, 27 Mar 2008 05:30:18 +0000 (+0000) Subject: unix.c (fd_close): Do not close STDIN. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40e43495ce35c06ac8379cc062673ac742dea592;p=gcc.git 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 --- 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;