Actions
Bug #4683
closed[PATCH] io.c: copy_stream execute interrupts and retry
Description
It's debatable whether this is a bug or not, but I think the current interrupt
handling behavior with IO.copy_stream is fragile and unpredictable, and
inconsistent with IO#read and IO#write.
This is to be consistent with IO#read and IO#write behavior
where rb_io_wait_readable() and rb_io_wait_writable() retry
on interrupt (EAGAIN/ERESTART) instead of returning a short
copy or raising Errno::EINTR.
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0