summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 06:30:11 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-10 06:30:11 +0000
commit11930ca8ead99b308bdd70a2f8d1babda836e442 (patch)
tree7028a2272a7be9535e51b3cbba94318734827784
parentc67a74570dd056569763f5015e0aafa7d454fca7 (diff)
eban
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--io.c7
2 files changed, 9 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 746adb10e36..7f5e7af1e9d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Mon Jul 10 15:27:16 2000 WATANABE Hirofumi <eban@os.rim.or.jp>
+
+ * io.c (pipe_finalize): should set rb_last_status when pclose().
+
Mon Jul 10 09:07:54 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
* error.c (rb_bug): print version number and such too.
diff --git a/io.c b/io.c
index 9abffb95195..43338dd274a 100644
--- a/io.c
+++ b/io.c
@@ -1475,13 +1475,16 @@ pipe_finalize(fptr)
OpenFile *fptr;
{
#if !defined (__CYGWIN__)
+ extern VALUE rb_last_status;
+ int status;
if (fptr->f) {
- pclose(fptr->f);
+ status = pclose(fptr->f);
}
if (fptr->f2) {
- pclose(fptr->f2);
+ status = pclose(fptr->f2);
}
fptr->f = fptr->f2 = 0;
+ rb_last_status = INT2FIX(status);
#else
fptr_finalize(fptr);
#endif