aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-09 11:49:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-09 11:51:57 +0900
commitb419f90a8bc3e472635a813e56cc2153b3125b41 (patch)
treee0acd3700b4a0d5b69bdc64e078760ef9e0d103f /io.c
parent4f907a80f04292e472d2eea660c4f5c0cb62e00f (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index b5553b5783..15032d72c2 100644
--- a/io.c
+++ b/io.c
@@ -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