diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 10:09:39 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-14 10:09:39 +0000 |
commit | 0b841783b508c9bddb1c0117b1970fc7c350843b (patch) | |
tree | 80e53c60b9abbe73b3c5f94063ce4b76d22e93a5 /eval.c | |
parent | 921d595fd4d1115e5cdccaaa2e68703fc8282436 (diff) |
* eval.c (ruby_finalize_0): return the given exit status unless
SystemExit got raised.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1309,8 +1309,8 @@ ruby_options(argc, argv) void rb_exec_end_proc _((void)); static int -ruby_finalize_0(exp) - int exp; +ruby_finalize_0(ex) + int ex; { ruby_errinfo = 0; PUSH_TAG(PROT_NONE); @@ -1326,7 +1326,7 @@ ruby_finalize_0(exp) VALUE st = rb_iv_get(ruby_errinfo, "status"); return NUM2INT(st); } - return EXIT_SUCCESS; + return ex; } void |