Project

General

Profile

Actions

Bug #21038

closed

Preserve `errno` in `rb_fiber_scheduler_unblock`

Added by ioquatix (Samuel Williams) about 21 hours ago. Updated about 16 hours ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:120674]

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

Also available in: Atom PDF

Like0
Like0Like0Like0