From: Wilkes Joiner Date: 2002-06-17T23:18:35+09:00 Subject: Re: Kernel#select questions > I think I was wrong in [ruby-talk:40015] -- although, I can't > verify it now. On Linux, #select returns nil on timeout. > Maybe on Win32 it returns [[], [], []] ... I can't remember. > > I just ran Wilkes's test case on Linux, and #select returns > nil even with the Thread.new line not commented out. For clarification, here is the sample output: nil <- every second, due to timeout nil nil [[],[],[]] <- when a request hits [[],[],[]] [[],[],[]] [[],[],[]] ... > I think the problem has to do with threading interfering with > #select on Win32. [ruby-talk:40221] reminds me of this ... > and the next message [ruby-talk:40279] you post a patch. That seems to be the problem. It behaves correctly using ruby 1.7.2 from http://www.dm4lab.to/~usa/ruby/index_en.html. Thanks to everyone for helping me out. -Wilkes __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com