From: Francis Cianfrocca Date: 2006-06-21T06:39:57+09:00 Subject: Re: C Threads and Ruby ------=_Part_3067_27808927.1150839594571 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline >>>Well, b*****it: ------------------------------- $stdout.sync = true rd, wr = IO.pipe Thread.new do loop do puts 'foo!' sleep 0.5 end end sleep 2 puts(rd.gets) ------------------------------- <<< Joel already caught the obvious error in this code. It's also possible you'll hit a platform-dependence with half/full duplex descriptors. Are you using Windows or Unix-like? ------=_Part_3067_27808927.1150839594571--