diff --git a/process.c b/process.c index 5ec02f445d..e9d8264f7b 100644 --- a/process.c +++ b/process.c @@ -602,6 +602,7 @@ rb_last_status_set(int status, rb_pid_t pid) th->last_status = rb_obj_alloc(rb_cProcessStatus); rb_ivar_set(th->last_status, id_status, INT2FIX(status)); rb_ivar_set(th->last_status, id_pid, PIDT2NUM(pid)); + rb_obj_freeze(th->last_status); } void