mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Apparently, in mruby-process gem, Process is now a Module, not a Class
This commit is contained in:
@@ -78,7 +78,7 @@ io_set_process_status(mrb_state *mrb, pid_t pid, int status)
|
||||
|
||||
c_status = NULL;
|
||||
if (mrb_class_defined(mrb, "Process")) {
|
||||
c_process = mrb_class_get(mrb, "Process");
|
||||
c_process = mrb_module_get(mrb, "Process");
|
||||
if (mrb_const_defined(mrb, mrb_obj_value(c_process), mrb_intern_cstr(mrb, "Status"))) {
|
||||
c_status = mrb_class_get_under(mrb, c_process, "Status");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user