ruby-changes:72360
From: Nobuyoshi <ko1@a...>
Date: Thu, 30 Jun 2022 00:40:47 +0900 (JST)
Subject: [ruby-changes:72360] bd8ed1f904 (master): Do not call `exit()` directly
https://git.ruby-lang.org/ruby.git/commit/?id=bd8ed1f904 From bd8ed1f904969f853e747aaa1b942657908a3b00 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Wed, 29 Jun 2022 20:10:29 +0900 Subject: Do not call `exit()` directly --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruby.c b/ruby.c index 0d8119ae4f..846c071e0b 100644 --- a/ruby.c +++ b/ruby.c @@ -1819,7 +1819,7 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt) https://github.com/ruby/ruby/blob/trunk/ruby.c#L1819 #if USE_MJIT if (opt->mjit.on) { rb_warn("MJIT and YJIT cannot both be enabled at the same time. Exiting"); - exit(1); + return Qfalse; } #endif #if YJIT_BUILD -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/