diff options
author | Eli Zaretskii <eliz@gnu.org> | 2013-04-28 22:16:07 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2013-04-28 22:16:07 +0300 |
commit | 4cbd754d74e4dbaf463b47033a3a6f0c50a1e376 (patch) | |
tree | ee33198476f58305720e9a7e16329d523cee1b54 /io.c | |
parent | a3a4f0427cf13ef9dc72e8dc1f614371199be797 (diff) | |
download | egawk-4cbd754d74e4dbaf463b47033a3a6f0c50a1e376.tar.gz egawk-4cbd754d74e4dbaf463b47033a3a6f0c50a1e376.tar.bz2 egawk-4cbd754d74e4dbaf463b47033a3a6f0c50a1e376.zip |
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.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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) */ |