diff options
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -4020,6 +4020,7 @@ rb_io_close(VALUE io) rb_thread_fd_close(fd); if (fptr->pid) { + rb_last_status_clear(); rb_syswait(fptr->pid); fptr->pid = 0; } |