1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
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> Mon Jul 10 09:07:54 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
* error.c (rb_bug): print version number and such too. * error.c (rb_bug): print version number and such too.

7
io.c
View file

@ -1475,13 +1475,16 @@ pipe_finalize(fptr)
OpenFile *fptr; OpenFile *fptr;
{ {
#if !defined (__CYGWIN__) #if !defined (__CYGWIN__)
extern VALUE rb_last_status;
int status;
if (fptr->f) { if (fptr->f) {
pclose(fptr->f); status = pclose(fptr->f);
} }
if (fptr->f2) { if (fptr->f2) {
pclose(fptr->f2); status = pclose(fptr->f2);
} }
fptr->f = fptr->f2 = 0; fptr->f = fptr->f2 = 0;
rb_last_status = INT2FIX(status);
#else #else
fptr_finalize(fptr); fptr_finalize(fptr);
#endif #endif