summaryrefslogtreecommitdiff
path: root/libgfortran/intrinsics
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-14 09:56:26 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2013-03-14 09:56:26 +0000
commit5d5750fb148f75cbc5a68359c1edacff4c30c06e (patch)
treebe4e0682c94029a17cdcd27f21e219b52e2d899d /libgfortran/intrinsics
parent5e469dac3b76caa4c4fc5ab2f8f19e4e2d76dace (diff)
downloadgcc-5d5750fb148f75cbc5a68359c1edacff4c30c06e.tar.gz
2013-03-14 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 196650 using svnmerge.py git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@196652 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r--libgfortran/intrinsics/execute_command_line.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/intrinsics/execute_command_line.c b/libgfortran/intrinsics/execute_command_line.c
index d0f812dcacd..fa6ea9fbc34 100644
--- a/libgfortran/intrinsics/execute_command_line.c
+++ b/libgfortran/intrinsics/execute_command_line.c
@@ -94,8 +94,10 @@ execute_command_line (const char *command, bool wait, int *exitstat,
if (res == -1)
set_cmdstat (cmdstat, EXEC_SYSTEMFAILED);
+#ifndef HAVE_FORK
else if (!wait)
set_cmdstat (cmdstat, EXEC_SYNCHRONOUS);
+#endif
else
set_cmdstat (cmdstat, EXEC_NOERROR);