Bug #2469
Difference behavior of IO#read_nonblock and #read between 1.8 and 1.9
| Status: | Closed | Start date: | 12/10/2009 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 100% |
||
| Category: | core | |||
| Target version: | 2.0.0 | |||
| ruby -v: | ruby 1.9.2dev (2009-12-10 trunk 26055) [i386-darwin9.8.0] |
Description
The following code doesn't finish on ruby 1.9 (both 1.9.1 and 1.9.2dev), while finishes with Errno::EAGAIN on ruby 1.8.7. read, write = IO.pipe write << 'hello' read.read_nonblock(5) read.read(5) I checked it on i386-darwin9.8.0 and i686-linux. (This code is extracted from spec/rubyspec/core/io/read_nonblock_spec.rb)
History
Updated by ujihisa (ujihisa .) over 2 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
[ruby-dev:25101] http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/25101