This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR 48961 - Fix EXECUTE_COMMAND_LINE w/ wait=.false. for non-fork systems
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Fri, 13 May 2011 17:45:22 -0700
- Subject: Re: [Patch, Fortran] PR 48961 - Fix EXECUTE_COMMAND_LINE w/ wait=.false. for non-fork systems
- References: <4DCB0C68.1090601@net-b.de>
On Thu, May 12, 2011 at 12:23:36AM +0200, Tobias Burnus wrote:
> The attached patch fixes three issues:
>
> a) If fork() is not supported, CMDSTAT is -2 (as required by the
> standard) - and everything is executed synchronously. However,
> set_cmdstat will abort if the cmdstat value is not 0.
>
> b) The cmdstat value should be set to an error if system returns an
> error ("-1") -- also for WAIT=.false.
>
> c) In the synchronous case with WAIT=.false. the EXITSTAT= value was not
> set.
>
> Additionally, I converted some literals to the EXEC_* enum values.
>
> Build on x86-64-linux.
> OK for the trunk?
>
> Tobias
>
> PS: The next step would be to add support for asynchronous execution
> under Windows, cf. PR.
This is OK with a proper ChangeLog entry.
--
Steve