]> sourceware.org Git - newlib-cygwin.git/commitdiff
* thread.cc (cancelable_wait): Remove test for main thread.
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 2 May 2011 18:48:11 +0000 (18:48 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 2 May 2011 18:48:11 +0000 (18:48 +0000)
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_fifo.cc
winsup/cygwin/thread.cc

index e7f155dff085ba58ee3f18186a5205e1cda3b458..4b66e024dacf7a2e75f1accf17a9d20403dfcaeb 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-02  Corinna Vinschen  <corinna@vinschen.de>
+
+       * thread.cc (cancelable_wait): Remove test for main thread.
+       * fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
+
 2011-05-02  Corinna Vinschen  <corinna@vinschen.de>
 
        * fhndler_tty.cc (andler_pty_master::process_slave_output): Make
index 35bc54dfefd7fa4c6dde5d3fa4cbaa1323d32ad2..72a5bd6c14e26fcb9331d4f041600e1452e36caa 100644 (file)
@@ -47,9 +47,7 @@ fhandler_fifo::open_nonserver (const char *npname, unsigned low_flags,
                             FILE_FLAG_OVERLAPPED, NULL);
       if (h != INVALID_HANDLE_VALUE || GetLastError () != ERROR_PIPE_NOT_CONNECTED)
        return h;
-      if (&_my_tls != _main_tls)
-       yield ();
-      else if (IsEventSignalled (signal_arrived))
+      if (IsEventSignalled (signal_arrived))
        {
          set_errno (EINTR);
          return NULL;
index 3de53f6fa33965ca3f87fed41b471cb18377b6b4..0ac8101173672e0efe51fdff38d8b0e20e1426ec 100644 (file)
@@ -930,7 +930,7 @@ cancelable_wait (HANDLE object, DWORD timeout,
     }
 
   DWORD sig_n;
-  if (sig_wait == cw_sig_nosig || &_my_tls != _main_tls)
+  if (sig_wait == cw_sig_nosig)
     sig_n = WAIT_TIMEOUT + 1;
   else
     {
This page took 0.035447 seconds and 5 git commands to generate.