From: Glen Holcomb Date: 2009-09-22T01:37:56+09:00 Subject: Re: script hangs while waiting for user input --00032555a15a3d084f0474191a41 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On Mon, Sep 21, 2009 at 10:21 AM, Jule Nissen wrote= : > Glen Holcomb wrote: > > On Mon, Sep 21, 2009 at 3:09 AM, Jule Nissen > > wrote: > > > >> > >> Posted via http://www.ruby-forum.com/. > >> > >> > > An alternative to turning off the feature might be threads. It might b= e > > tricky though depending on if/how things block in this situation. > > Although > > if you are using Ruby 1.9 that shouldn't be an issue. > > I tried threads - but it didn't work. Didn't know that the Ruby-version > is important... Will check if 1.9 is installed. > > Thanks > > > > > -- > > "Hey brother Christian with your high and mighty errand, Your actions > > speak > > so loud, I can=92t hear a word you=92re saying." > > > > -Greg Graffin (Bad Religion) > > -- > Posted via http://www.ruby-forum.com/. > > 1.9 uses OS Native threads while 1.8 uses green threads so if the ruby process is blocked then your "threads" a potentially blocked. I've never tried threads with 1.9 in Windows though so I don't know how they behave. --=20 "Hey brother Christian with your high and mighty errand, Your actions speak so loud, I can=92t hear a word you=92re saying." -Greg Graffin (Bad Religion) --00032555a15a3d084f0474191a41--