From 121e1301b01ca44f930f8e759c81e02f27deb879 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Tue, 11 Sep 2018 22:35:57 +0200 Subject: [PATCH] Hopefully this fixes the crashes on OpenSuSE 15. --- src/rba/rba/rba.cc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/rba/rba/rba.cc b/src/rba/rba/rba.cc index d5a243d9b..c87e14d02 100644 --- a/src/rba/rba/rba.cc +++ b/src/rba/rba/rba.cc @@ -1850,13 +1850,6 @@ RubyInterpreter::initialize (int &main_argc, char **main_argv, int (*main_func) #endif - // Remove setters for $0 and $PROGRAM_NAME (still both are linked) because - // the setter does strange things with the process and the argv, specifically argv[0] above. - static VALUE argv0 = Qnil; - argv0 = c2ruby (main_argv [0]); - rb_define_hooked_variable("$0", &argv0, 0, 0); - rb_define_hooked_variable("$PROGRAM_NAME", &argv0, 0, 0); - rb_define_global_function("__run_app__", (VALUE (*)(...)) run_app_func, 0); s_argc = &main_argc;