Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-05-02 22:48:11 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-05-02 22:48:11 +0400
commit183ad8597c86a239a71c08364390e0b5d35065c2 (patch)
tree3a2deb84c3457756b3462b11b5b572a4833051d2 /winsup/cygwin/fhandler_fifo.cc
parent27dd7bfbcda74cda15a04d90bafb207ece252583 (diff)
* thread.cc (cancelable_wait): Remove test for main thread.
* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_fifo.cc')
-rw-r--r--winsup/cygwin/fhandler_fifo.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_fifo.cc b/winsup/cygwin/fhandler_fifo.cc
index 35bc54dfe..72a5bd6c1 100644
--- a/winsup/cygwin/fhandler_fifo.cc
+++ b/winsup/cygwin/fhandler_fifo.cc
@@ -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;