summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 06:47:04 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 06:47:04 +0000
commitd964d07652af0c577e81dc119f36a0136bbc0ca9 (patch)
tree3d6d994b28e316c85516d1dda304cf86643748cd
parent869effcee86d1c4eabe1831c1a4f31043af4fcc6 (diff)
downloadruby-d964d07652af0c577e81dc119f36a0136bbc0ca9.tar.gz
ruby-d964d07652af0c577e81dc119f36a0136bbc0ca9.tar.xz
ruby-d964d07652af0c577e81dc119f36a0136bbc0ca9.zip
eban
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/io.c b/io.c
index 43338dd27..d5701dcb8 100644
--- a/io.c
+++ b/io.c
@@ -1484,6 +1484,9 @@ pipe_finalize(fptr)
status = pclose(fptr->f2);
}
fptr->f = fptr->f2 = 0;
+#if defined DJGPP || (defined NT && !defined __BORLANDC__)
+ status <<= 8;
+#endif
rb_last_status = INT2FIX(status);
#else
fptr_finalize(fptr);