* eval.c (proc_invoke): should update "result" for orphans.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
def3aa514a
commit
5f1db6ea96
2
eval.c
2
eval.c
@ -7035,7 +7035,7 @@ proc_invoke(proc, args, self, klass)
|
|||||||
proc_set_safe_level(proc);
|
proc_set_safe_level(proc);
|
||||||
result = rb_yield_0(args, self, self!=Qundef?CLASS_OF(self):0, pcall, Qtrue);
|
result = rb_yield_0(args, self, self!=Qundef?CLASS_OF(self):0, pcall, Qtrue);
|
||||||
}
|
}
|
||||||
else if (pcall || TAG_DST()) {
|
else if (pcall || orphan || TAG_DST()) {
|
||||||
result = prot_tag->retval;
|
result = prot_tag->retval;
|
||||||
}
|
}
|
||||||
POP_TAG();
|
POP_TAG();
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# open3.rb: Spawn a program like popen, but with stderr, too. You might also
|
# open3.rb: Spawn a program like popen, but with stderr, too. You might also
|
||||||
# want to use this if you want to bypass the shell. (By passing multiple args,
|
# want to use this if you want to bypass the shell. (By passing multiple args,
|
||||||
# with IO#popen does not allow)
|
# which IO#popen does not allow)
|
||||||
#
|
#
|
||||||
# Usage:
|
# Usage:
|
||||||
# require "open3"
|
# require "open3"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user