aboutsummaryrefslogtreecommitdiff
path: root/libgfortran/io/close.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgfortran/io/close.c')
-rw-r--r--libgfortran/io/close.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/libgfortran/io/close.c b/libgfortran/io/close.c
index 36d9f94..2117c40 100644
--- a/libgfortran/io/close.c
+++ b/libgfortran/io/close.c
@@ -24,7 +24,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#include "io.h"
#include "unix.h"
-#include "async.h"
#include <limits.h>
typedef enum
@@ -58,21 +57,13 @@ st_close (st_parameter_close *clp)
find_option (&clp->common, clp->status, clp->status_len,
status_opt, "Bad STATUS parameter in CLOSE statement");
- u = find_unit (clp->common.unit);
-
- if (u && u->au)
- if (async_wait (&(clp->common), u->au))
- {
- library_end ();
- return;
- }
-
if ((clp->common.flags & IOPARM_LIBRETURN_MASK) != IOPARM_LIBRETURN_OK)
{
library_end ();
return;
}
+ u = find_unit (clp->common.unit);
if (u != NULL)
{
if (close_share (u) < 0)