Mail Archives: cygwin-developers/1998/05/08/11:17:27
> If I remember correctly, it wasn't a race condition, was it? I thought
Let me clarify. The race condition I mention is when a signal
comes in at the right time (which is, when the connect winsock call
is active).
> things just behaved badly in a user supplied signal handler routine
> if connect was interrupted. Putting these around the i_connect call
> makes the connect uninterruptable. Is that correct?
The race condition only manifests itself when things are done
before the connect code continues. If the signal is not handled
or if the signal handler does not perform certain actions and
lets the connect code continue, then the problem does not manifest
itself. But it is perfectly legal to jump out of a signal handler
never to return, or to use sockets while in a signal handler.
> cgf
Tim N.
- Raw text -