From 55d4afc77ee8a6601fe1f00aea025566da9044de Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 10 May 2014 04:41:02 +0000 Subject: [PATCH] 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 --- process.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/process.c b/process.c index 75af4bd073..ace15b1c71 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); }