summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp_sys.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 910fb14fab..4fb055fbcc 100644
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -4138,6 +4138,8 @@ PP(pp_system)
PerlLIO_close(pp[0]);
#if defined(HAS_FCNTL) && defined(F_SETFD)
fcntl(pp[1], F_SETFD, FD_CLOEXEC);
+#else
+ PerlLIO_close(pp[1]); /* Do as best as we can: pretend success. */
#endif
}
if (PL_op->op_flags & OPf_STACKED) {