зеркало из https://github.com/github/ruby.git
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c67a74570d
Коммит
11930ca8ea
|
@ -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
7
io.c
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче