From bd8ed1f904969f853e747aaa1b942657908a3b00 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Wed, 29 Jun 2022 20:10:29 +0900 Subject: [PATCH] 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) #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