This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch, Fortran] PR 48961 - Fix EXECUTE_COMMAND_LINE w/ wait=.false. for non-fork systems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]