Re: [PATCH, libgfortran] PR 61187 Handle closed std{in,out,err}

2014-05-15 Thread Tobias Burnus
Janne Blomqvist wrote: > libgfortran was happily assuming that STD{IN,OUT,ERR}_FILENO were open > and no error checking was performed on the fstat() call > Tested on x86_64-unknown-linux-gnu, Ok for trunk/4.9/4.8/4.7? Looks good to me. Thanks! Note that 4.8 has been frozen, cf. https://gcc.gnu.o

[PATCH, libgfortran] PR 61187 Handle closed std{in,out,err}

2014-05-14 Thread Janne Blomqvist
Hello, libgfortran was happily assuming that STD{IN,OUT,ERR}_FILENO were open and no error checking was performed on the fstat() call when building the unit structure for those units. This caused valgrind to complain when running under MPICH2, which closes stdin for all ranks but rank 0 before lau