1.3.13?

Corinna Vinschen vinschen@redhat.com
Mon Aug 5 08:56:00 GMT 2002


On Mon, Aug 05, 2002 at 11:41:28AM -0400, Chris Faylor wrote:
> The below should reduce the window of the race but not eliminate it.
> Does it make any difference to the observed behavior?

It helps.  The behaviour disappered for me.  Only...

> -      SuspendThread (info->h);
> +      SuspendThread (GetCurrentThreadId ());
                        ^^^^^^^^^^^^^^^^^^^^^
...that should be       GetCurrentThread ()
                        

Question:  Why is SetEvent() called at that point at all?  Since
__name is set to NULL, detach doesn't call WaitForSingleObject()
anyway.  What am I missing now?

Corinna



More information about the Cygwin-developers mailing list