From: Roger Pack Date: 2010-06-18T05:18:05+09:00 Subject: Re: serialport won't thread (new to ruby) > # Given the above, this works: > readSerial > # But the problem is that rather than just calling that, I want to > thread. > # But the below hangs (I get one line of "Reading line from TTY" -- > but only one). > # and while threadTTY hangs, threadGets works fine in the background. > threadGets = Thread.new{watchGets} > threadTTY = Thread.new{readSerial} > threadGets.join > threadTTY.join What is TTY? Also are you on windows? Which version of ruby? -r -- Posted via http://www.ruby-forum.com/.