Reflect the fact that client handlers are only used for reading and
that, after connection, they are always nonblocking.
else
{
fh->set_handle (ph);
- fh->set_flags (get_flags ());
+ fh->set_flags ((openflags & ~O_ACCMODE) | O_RDONLY);
+ fh->set_nonblocking (false);
ret = 0;
fc.fh = fh;
fc_handler[nhandlers++] = fc;
fifo_client_lock ();
fc.state = fc_connected;
nconnected++;
+ fc.fh->set_nonblocking (true);
set_pipe_non_blocking (fc.fh->get_handle (), true);
fifo_client_unlock ();
HANDLE evt = InterlockedExchangePointer (&fc.connect_evt, NULL);