mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (ruby_cleanup): should not ignore exit_value in END
execution. [ruby-dev:21670] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d0244508c2
commit
903f98a643
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Oct 22 02:31:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (ruby_cleanup): should not ignore exit_value in END
|
||||
execution. [ruby-dev:21670]
|
||||
|
||||
Tue Oct 21 23:16:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (ruby_cleanup): call finalizers and exit procs before
|
||||
|
|
3
eval.c
3
eval.c
|
@ -1348,6 +1348,7 @@ ruby_cleanup(ex)
|
|||
|
||||
ruby_safe_level = 0;
|
||||
ruby_finalize_0();
|
||||
if (ruby_errinfo) err = ruby_errinfo;
|
||||
PUSH_TAG(PROT_NONE);
|
||||
PUSH_ITER(ITER_NOT);
|
||||
if ((state = EXEC_TAG()) == 0) {
|
||||
|
@ -3913,8 +3914,6 @@ rb_longjmp(tag, mesg)
|
|||
VALUE at;
|
||||
|
||||
if (thread_set_raised()) {
|
||||
printf("%d (c:%p m:%p):", tag, curr_thread, main_thread);
|
||||
rb_p(mesg);
|
||||
ruby_errinfo = exception_error;
|
||||
JUMP_TAG(TAG_FATAL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue