From: "daz (c)" Date: 2007-09-28T02:58:46+09:00 Subject: Re: 1.8.6 on windows: issues with IO and Threads Luis Lavena wrote: > Hello Ruby Developers. > > I've been trying to determine what is wrong with this simple script: > > http://pastie.caboo.se/101434 > > t = Thread.new { > while true > puts "printing a line" > sleep 2 > end > } > > gets > t.exit > puts "exiting" > > === > It's happening but you're not seeing the buffered output. Add STDOUT.sync=true as the first line. > Thanks in advance for your time. Your welcome. It's a perennial question and answer.