Hi, all

I tested pipe with this code:

readPipe, writePipe = IO.pipe
t = Thread.new { puts "got #{readPipe.readline.length} bytes" }
sleep 1
puts "hello from main"
writePipe.puts "a"*2048
t.join


It works on Linux, but it blocks and fails to respond Ctrl-C on Windows.
How to avoid freezing on Windows?

Regards,
Park Heesob
-- 
Posted via http://www.ruby-forum.com/.