diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-09 11:49:20 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-12-09 11:51:57 +0900 |
commit | b419f90a8bc3e472635a813e56cc2153b3125b41 (patch) | |
tree | e0acd3700b4a0d5b69bdc64e078760ef9e0d103f /io.c | |
parent | 4f907a80f04292e472d2eea660c4f5c0cb62e00f (diff) | |
download | ruby-b419f90a8bc3e472635a813e56cc2153b3125b41.tar.gz |
Tweaked `Process::Status.wait`
* revert `rb_last_status_set`
* renamed the new function as `rb_process_status_new`
* `rb_process_status_new` always freezes the return value
* marked `Process::Status.wait` as EXPERIMENTAL, as it has not
been discussed totally yet.
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6437,7 +6437,7 @@ pipe_finalize(rb_io_t *fptr, int noraise) } fptr->fd = -1; fptr->stdio_file = 0; - rb_last_status_set(fptr->pid, status, 0); + rb_last_status_set(status, fptr->pid); #else fptr_finalize(fptr, noraise); #endif |