Project

General

Profile

Actions

Bug #822

closed

gets blocks when it shouldn't

Bug #822: gets blocks when it shouldn't

Added by saeed (Ahmed Saeed) almost 17 years ago. Updated over 14 years ago.

Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:20310]

Description

=begin
r,w = IO.pipe
w.write("some text\n\n\nsome text\n\n\n")
puts r.gets("")
puts r.gets("")

When I used this code gets blocks on the second call. When the last newline character is replaced with any other character it works just fine.
=end

Actions

Also available in: PDF Atom