1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* io.c (pipe_finalize): status is success if no process.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2010-11-11 12:26:30 +00:00
parent 41cae1744f
commit db0ebb32c9

2
io.c
View file

@ -4833,7 +4833,7 @@ static void
pipe_finalize(rb_io_t *fptr, int noraise) pipe_finalize(rb_io_t *fptr, int noraise)
{ {
#if !defined(HAVE_FORK) && !defined(_WIN32) #if !defined(HAVE_FORK) && !defined(_WIN32)
int status; int status = 0;
if (fptr->stdio_file) { if (fptr->stdio_file) {
status = pclose(fptr->stdio_file); status = pclose(fptr->stdio_file);
} }