* fhandler_fifo.cc (fhandler_fifo::open_nonserver): Ditto.
+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
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;
}
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
{