T
Tim Pease
Waking up a thread that is waiting in Kernel#select does not appear to =
work in ruby 1.9 Can someone please confirm that this is the case. Is =
this the intended behavior, or is this a bug?
pair =3D Socket.pair(Socket::AF_UNIX, Socket::SOCK_STREAM, 0)
t =3D Thread.new {
Kernel.select pair, nil, nil, nil
puts "Thread is about to exit ..."
}
t.wakeup
t.join
Any thoughts out there ???
Blessings,
TwP=
work in ruby 1.9 Can someone please confirm that this is the case. Is =
this the intended behavior, or is this a bug?
require 'socket'cat a.rb
pair =3D Socket.pair(Socket::AF_UNIX, Socket::SOCK_STREAM, 0)
t =3D Thread.new {
Kernel.select pair, nil, nil, nil
puts "Thread is about to exit ..."
}
t.wakeup
t.join
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]ruby --version
Thread is about to exit ...ruby a.rb
ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10]ruby1.9 --version
ruby1.9 a.rb #=3D> hangs forever!!!!
Any thoughts out there ???
Blessings,
TwP=