git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eban 2000-07-10 06:30:11 +00:00
parent c67a74570d
commit 11930ca8ea
2 changed files with 9 additions and 2 deletions

View File

@ -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.

7
io.c
View File

@ -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