aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-01-27 20:47:42 +0200
committerArnold D. Robbins <arnold@skeeve.com>2016-01-27 20:47:42 +0200
commit2bc78c79f79dea26c044a60d25a8f57d4869fd6d (patch)
tree050c69ed053e630b29465c41dc755bfa16c855a7 /io.c
parentae23c6e39ed910798890267679c1d744b951028a (diff)
parentcd64f695ec51f4f9e67cc0380d30b429e1be298b (diff)
downloadegawk-2bc78c79f79dea26c044a60d25a8f57d4869fd6d.tar.gz
egawk-2bc78c79f79dea26c044a60d25a8f57d4869fd6d.tar.bz2
egawk-2bc78c79f79dea26c044a60d25a8f57d4869fd6d.zip
Merge branch 'master' into feature/cmake
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io.c b/io.c
index 0d521ed0..d618181d 100644
--- a/io.c
+++ b/io.c
@@ -190,7 +190,7 @@
#define setsid() /* nothing */
#endif /* HAVE_SETSID */
-#if defined(GAWK_AIX)
+#if defined(_AIX)
#undef TANDEM /* AIX defines this in one of its header files */
#endif
@@ -1021,8 +1021,10 @@ redirect_string(const char *str, size_t explen, bool not_string,
(vaxc$errno == SS$_EXQUOTA ||
vaxc$errno == SS$_EXBYTLM ||
vaxc$errno == RMS$_ACC ||
- vaxc$errno == RMS$_SYN))
+ vaxc$errno == RMS$_SYN)) {
close_one();
+ close_one();
+ }
#endif
else {
/*