This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libfortran/82233] [6/7/8 Regression] execute_command_line causes program to stop when command fails (or does not exist)
- From: "tkoenig at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Oct 2017 17:07:48 +0000
- Subject: [Bug libfortran/82233] [6/7/8 Regression] execute_command_line causes program to stop when command fails (or does not exist)
- Auto-submitted: auto-generated
- References: <bug-82233-4@http.gcc.gnu.org/bugzilla/>
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.