From: "Hal E. Fulton" Date: 2002-08-02T00:04:53+09:00 Subject: Re: "gets" blocking process not thread (in Windows only) ----- Original Message ----- From: "Laurent Julliard" To: "ruby-talk ML" Cc: "Curt Hibbs" Sent: Thursday, August 01, 2002 9:26 AM Subject: Re: "gets" blocking process not thread (in Windows only) > I don't know if this relates in any way with what Curt Hibbs is trying > to fix for the FreeRIDE project. We are having problems with the way > threads are managed when Ruby is compiled with VC++. It sounds like the > cygwin version runs ok. Which one do you use? > > I cc Curt because this might be an interesting test case for its fix. I think this *may* be unrelated. In the Cygwin version, the behavior I remember is this (I may be wrong): gets would not block in a thread *unless* the user had already typed at least one character. (I know, it's weird, but that's Windows.) So if you did a "timeout" of a thread doing a gets, the timeout would work if the user had not typed anything yet, but would fail otherwise. Hal