
Issue #21038 has been reported by ioquatix (Samuel Williams). ---------------------------------------- Bug #21038: Preserve `errno` in `rb_fiber_scheduler_unblock` https://bugs.ruby-lang.org/issues/21038 * Author: ioquatix (Samuel Williams) * Status: Open * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- `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. -- https://bugs.ruby-lang.org/