From: Curt Hibbs Date: 2002-08-02T00:14:35+09:00 Subject: RE: "gets" blocking process not thread (in Windows only) Hal E. Fulton wrote: > > From: "Laurent Julliard" > > > 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. It might be related. The one of the test cases I am currently using does not involve any typing at all -- the user doesn't have to do anything. in anycase, once I find the problem and have a fix I will test it against these similar reports. Curt