Actions
Bug #21038
closedPreserve `errno` in `rb_fiber_scheduler_unblock`
Bug #21038:
Preserve `errno` in `rb_fiber_scheduler_unblock`
Description
rb_fiber_scheduler_unblock can invoke user code that can affect errno, and at least in io_binwrite, this is unexpected. Whether io_binwrite should be fixed is a separate issue (it probably should be, as errno is not explicitly preserved or documented how it is preserved).
See https://github.com/socketry/io-event/issues/127 for more discussion.
Actions