[Bug libfortran/82233] [6/7/8 Regression] execute_command_line causes program to stop when command fails (or does not exist)
tkoenig at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Oct 20 17:07:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82233
--- Comment #20 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Jerry DeLisle from comment #19)
> (In reply to Christophe Lyon from comment #17)
> > Thanks for your effort; I'm still seeing noise though.
> >
> > Sorry, I'm not fluent in fortran: is there a way to call wait() from fortran?
> > I could try adding it at the end of the testcase, to see if it reliably
> > fixes the problem I observed.
>
> You can use ISO_C_Binding and call a C function. See
> https://gcc.gnu.org/onlinedocs/gfortran/Interoperable-Subroutines-and-
> Functions.html
It might be possible to call wait() from Fortran using ISO C binding,
but I don't know how to get the type of pid_t from Fortran.
More information about the Gcc-bugs
mailing list