ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:120674] [Ruby master Bug#21038] Preserve `errno` in `rb_fiber_scheduler_unblock`
@ 2025-01-15  0:39 ioquatix (Samuel Williams) via ruby-core
  2025-01-15  5:13 ` [ruby-core:120692] " k0kubun (Takashi Kokubun) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ioquatix (Samuel Williams) via ruby-core @ 2025-01-15  0:39 UTC (permalink / raw)
  To: ruby-core; +Cc: ioquatix (Samuel Williams)

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/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-02-14  5:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-15  0:39 [ruby-core:120674] [Ruby master Bug#21038] Preserve `errno` in `rb_fiber_scheduler_unblock` ioquatix (Samuel Williams) via ruby-core
2025-01-15  5:13 ` [ruby-core:120692] " k0kubun (Takashi Kokubun) via ruby-core
2025-01-25  6:34 ` [ruby-core:120792] " nagachika (Tomoyuki Chikanaga) via ruby-core
2025-02-14  5:09 ` [ruby-core:121022] " k0kubun (Takashi Kokubun) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).