1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

freeze Process::Status

It seems immutable information.
This commit is contained in:
Koichi Sasada 2020-10-20 11:05:04 +09:00
parent bdd1d17ac2
commit 1c6ebe14fb
Notes: git 2020-10-27 01:38:02 +09:00

View file

@ -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