From 4cbd754d74e4dbaf463b47033a3a6f0c50a1e376 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 28 Apr 2013 22:16:07 +0300 Subject: Fix several tests on MinGW which were broken by a HACK in io.c. io.c (redirect): Remove the HACK that called close_one when errno was zero in the MinGW build. This prevents failure in several tests in the test suite, e.g., closebad. --- io.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index c8bd9b24..7e3626bf 100644 --- a/io.c +++ b/io.c @@ -902,10 +902,6 @@ redirect(NODE *redir_exp, int redirtype, int *errflg) /* too many files open -- close one and try again */ if (errno == EMFILE || errno == ENFILE) close_one(); -#if defined __MINGW32__ - else if (errno == 0) /* HACK! */ - close_one(); -#endif #ifdef VMS /* Alpha/VMS V7.1's C RTL is returning this instead of EMFILE (haven't tried other post-V6.2 systems) */ -- cgit v1.2.3