From: "nagachika (Tomoyuki Chikanaga)" Date: 2022-01-30T06:42:10+00:00 Subject: [ruby-core:107353] [Ruby master Bug#18443] IO read/write/wait hook bug fixes. Issue #18443 has been updated by nagachika (Tomoyuki Chikanaga). I have confirmed the PR https://github.com/ruby/ruby/pull/5473 contains the two whole backports and a partial backport from master branch. I think e4cd319f3d6560b76dbc1c7e89aa4d790a2d1e43 should be backported. @naruse can I backport it? The others are changesets for default gems stdlibs (irb and io-console). I prefer to sync released version from upstream for default gems. io-console-0.5.11.gem was released with the corresponding commits. I think these changesets are okey to backport. f27eb8148f5a72bbacfebfecc7de9305471bb5c9, d5836db1b398a7936b0461b3011db66f6cc8c490, d75f7078c831d45ab5ba2fae4fbb308d01a21e46. irb was not released yet with the changeset https://github.com/ruby/irb/commit/1c03bd33737e9c69ffa34a86618d69a543795e75. @aycabta, do you have any plan to release new version of irb? ---------------------------------------- Bug #18443: IO read/write/wait hook bug fixes. https://bugs.ruby-lang.org/issues/18443#change-96252 * Author: ioquatix (Samuel Williams) * Status: Closed * Priority: Normal * Backport: 2.6: DONTNEED, 2.7: DONTNEED, 3.0: DONTNEED, 3.1: REQUIRED ---------------------------------------- After testing Ruby 3.1.0 extensively, I found some obscure bugs which should be fixed. This should be back ported to 3.1.1 ASAP. - `console.c` incorrect `rb_io_wait` argument. - `rb_read_internal` incorrect logic when handling partial non-blocking reads in `io.c`. - Prefer `wait_readable` rather than `IO.select` in irb implementation. Please see https://github.com/ruby/ruby/pull/5353 for details. -- https://bugs.ruby-lang.org/ Unsubscribe: