Backport #2039

Backport 24413, 24416, 24442 to fix IO#select threading issue

Added by dazuma (Daniel Azuma) over 10 years ago. Updated over 8 years ago.



See in the 1.8.7 project.

Basically, there was a bug introduced between 1.8.6p287 and 1.8.6p368 which sometimes caused IO#select calls to erroneously return no results when multiple calls are in progress on different threads. It was affecting 1.8.7 as well, having been introduced into that branch between 1.8.7p72 and 1.8.7p160. It has since been corrected on the 1.8 head.

This has been affecting a great many Capistrano users on 1.8.6p368 and later patchlevels, as well as recent patchlevels of 1.8.7. (See as well as We'd appreciate it if the fix on the 1.8 head could get backported to the release branches.

Related issues

Related to Backport187 - Bug #1993: fails when called in multiple threads on 1.8.7p174Closed08/25/2009Actions

Associated revisions

Revision 5c17ceb0
Added by wyhaines (Kirk Haines) almost 10 years ago

Backport #2039 [ruby-core:25339]; backported r24413, r24416, r24442 to fix a problem with IO#select and threads. This is the same issue as Bug #199
3 [ruby-core:25114].

git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e



Updated by wyhaines (Kirk Haines) almost 10 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r26435.
Daniel, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


Also available in: Atom PDF