summaryrefslogtreecommitdiff
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
commitdf803a57a903c7e005af218ca470c5241e1b38d0 (patch)
tree3d6d994b28e316c85516d1dda304cf86643748cd
parent11930ca8ead99b308bdd70a2f8d1babda836e442 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/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 43338dd274a..d5701dcb8ab 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);