]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTART
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 7 Jul 2006 15:44:19 +0000 (15:44 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 7 Jul 2006 15:44:19 +0000 (15:44 +0000)
handling for now.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_socket.cc

index 9100a0f1a5a906f3698c912cff959a3d1b9945c4..effd5205ddc4e04603925f0e001d5d6335fa1600 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-07  Corinna Vinschen  <corinna@vinschen.de>
+
+       * fhandler_socket.cc (fhandler_socket::wait): Disable SA_RESTART
+       handling for now.
+
 2006-07-07  Corinna Vinschen  <corinna@vinschen.de>
 
        * Makefile.in (DLL_OFILES): Add inet_addr.o and inet_network.o.
index c3c24d24e57f8c964c5515b0c5fd15b6c8ee6351..7c6c06f9926c78bdaa2b002dbdfc170151d14d4f 100644 (file)
@@ -970,9 +970,11 @@ fhandler_socket::wait (HANDLE event, int flags, DWORD timeout)
   WSAEVENT ev[2] = { event, signal_arrived };
   WSANETWORKEVENTS evts;
 
+#if 0  /* Not yet.  Not this way. */
 /* If WSAWaitForMultipleEvents is interrupted by a signal, and the signal
    has the SA_RESTART flag set, return to this label and... restart. */
 sa_restart:
+#endif
 
   switch (WSAWaitForMultipleEvents (2, ev, FALSE, timeout, FALSE))
     {
@@ -1044,11 +1046,13 @@ sa_restart:
          }
        break;
       case WSA_WAIT_EVENT_0 + 1:
+#if 0  /* Not yet.  Not this way. */
        if (_my_tls.call_signal_handler ())
          {
            sig_dispatch_pending ();
            goto sa_restart;
          }
+#endif
        WSASetLastError (WSAEINTR);
        break;
       default:
This page took 0.034401 seconds and 5 git commands to generate.