]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: re-implement duplexers
authorKen Brown <kbrown@cornell.edu>
Thu, 9 May 2019 15:23:44 +0000 (11:23 -0400)
committerKen Brown <kbrown@cornell.edu>
Thu, 9 May 2019 18:41:29 +0000 (14:41 -0400)
commit00b2e56d3184231264005d6b1f60b1f40023907b
tree17dbe88966ede53401fa3b6398e139d22cc47d4e
parentf3d1fe2ff81ad6f5327caa9229626e39101da2c9
Cygwin: FIFO: re-implement duplexers

When opening a duplexer, open a client connection to the first client
handler.  Previously we gave the duplexer a bogus write handle, which
was just a duplicate of the first client handler's handle.  This meant
that we had a pipe server with no clients connected, and all I/O
attempts failed with STATUS_PIPE_LISTENING.

Extend the last fcntl change to duplexers.

Remove a now unused fifo_client_handler constructor, as well as the
long unusued method fifo_client_handler::connect.

Don't create the pipe in duplex mode; the server handle will only be
used for reading.
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_fifo.cc
This page took 0.028405 seconds and 5 git commands to generate.