summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 04:41:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-10 04:41:02 +0000
commit55d4afc77ee8a6601fe1f00aea025566da9044de (patch)
tree75c6cfbe0dc208ee53accb2e48f13247f455695e /process.c
parent9883632d6ad6dec664047df38f8098ef46963bb0 (diff)
process.c: use ruby_stop
* process.c (rb_exit): call ruby_stop() which calls ruby_cleanup(), instead of calling ruby_finalize() directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/process.c b/process.c
index 75af4bd..ace15b1 100644
--- a/process.c
+++ b/process.c
@@ -3532,8 +3532,7 @@ rb_exit(int status)
args[1] = rb_str_new2("exit");
rb_exc_raise(rb_class_new_instance(2, args, rb_eSystemExit));
}
- ruby_finalize();
- exit(status);
+ ruby_stop(status);
}