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:
parent
bdd1d17ac2
commit
1c6ebe14fb
Notes:
git
2020-10-27 01:38:02 +09:00
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue