From: Koichi Sasada Date: 2011-06-11T16:33:01+09:00 Subject: [ruby-core:37005] [Ruby 1.9 - Bug #4535][Assigned] [PATCH] fix race in blocking send_io/recv_io Issue #4535 has been updated by Koichi Sasada. Status changed from Open to Assigned Assignee set to Motohiro KOSAKI ---------------------------------------- Bug #4535: [PATCH] fix race in blocking send_io/recv_io http://redmine.ruby-lang.org/issues/4535 Author: Eric Wong Status: Assigned Priority: Normal Assignee: Motohiro KOSAKI Category: ext Target version: 1.9.x ruby -v: ruby 1.9.3dev (2011-03-28 trunk 31195) [x86_64-linux] =begin There is no need to call select() before entering a blocking I/O region since other threads may run. select() cannot guarantee readability if the IO is shared across different threads/processes. Furthermore, we actually need to select() on EAGAIN/EINTR since the functions are intended to be blocking so we move the select() calls into the retry loop. =end -- http://redmine.ruby-lang.org