From: "Duckz King_duckz" <king_duckz / yahoo.it>
>
> but if run under Windows, the whole script stops as soon as "gets" is
> reached, as if it was single-threaded.

I believe this works in ruby 1.9.1, now that native threads are used.

(I tested IO.popen on 1.9.1 on windows a few days ago, and finally all
of ruby is not blocked by a gets on the pipe.  Yay!)

In ruby 1.8 and earlier, the trouble is that since ruby uses select() in
its thread scheduling, on windows, select() only works with sockets,
not other types of file handles.  (I.e. windows is broken.)


Regards,

Bill