Skip to content

Instantly share code, notes, and snippets.

@nagachika
Created April 11, 2011 14:30
Show Gist options
  • Save nagachika/913606 to your computer and use it in GitHub Desktop.
Save nagachika/913606 to your computer and use it in GitHub Desktop.
test_4558.rb:11:in `join': stream closed (IOError)
from test_4558.rb:11:in `<main>'
r, w = IO.pipe
thr = Thread.new do
begin
r.read(1)
rescue
$!
end
end
sleep 0.5
r.close
thr.join
p thr.value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment