mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 03:52:55 +02:00
Redirect stdout to /dev/null when using console=false
This commit is contained in:
parent
472ac3d5d9
commit
e9e4850ea2
1 changed files with 4 additions and 2 deletions
|
@ -715,8 +715,10 @@ static void mriBindingExecute()
|
|||
ruby_init();
|
||||
rb_eval_string("$KCODE='U'");
|
||||
#ifdef NO_CONSOLE
|
||||
// Sysinit isn't a thing yet, so send stderr to /dev/null instead
|
||||
rb_funcall(rb_gv_get("$stderr"), rb_intern("reopen"), 1, rb_str_new2(NULL_IO));
|
||||
VALUE iostr = rb_str_new2(NULL_IO);
|
||||
// Sysinit isn't a thing yet, so send io to /dev/null instead
|
||||
rb_funcall(rb_gv_get("$stderr"), rb_intern("reopen"), 1, iostr);
|
||||
rb_funcall(rb_gv_get("$stdout"), rb_intern("reopen"), 1, iostr);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue