2008-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
* io/unix.c (fd_close): Do not close STDIN.
From-SVN: r133630
+2008-03-26 Jerry DeLisle <jvdelisle@gcc.gnu.org>
+
+ * io/unix.c (fd_close): Do not close STDIN.
+
2007-03-23 Thomas Koenig <tkoenig@gcc.gnu.org
PR libfortran/32972
if (s->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;