From fb201f9270852972b28ceee21bcc2cfbf2e89e15 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 22 Apr 2005 13:58:09 +0000 Subject: * fhandler.cc (fhandler_base::read): Remove unused signal state tweaks. * fhandler.h (fhandler_pipe::create_selectable): Declare. (fhandler_fifo::close_one_end): Declare. * fhandler_fifo.cc (fhandler_fifo::close_one_end): Define. (fhandler_fifo::open_not_mine): Use close_one_end to close appropriate end of pipe. * pinfo.cc (_pinfo::commune_recv): Ditto. * pipe.cc (fhandler_pipe::create_selectable): Rename from create_selectable_pipe. Reorganize. (fhandler_pipe::create): Use create_selectable. --- winsup/cygwin/fhandler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 7611378bd..f063f453a 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -503,7 +503,8 @@ public: HANDLE get_guard () const {return guard;} int ready_for_read (int fd, DWORD howlong); static int create (fhandler_pipe *[2], unsigned, int, bool = false); - bool is_slow () {return 1;} + bool is_slow () {return true;} + static int create_selectable (LPSECURITY_ATTRIBUTES, HANDLE&, HANDLE&, DWORD, bool); friend class fhandler_fifo; }; @@ -525,6 +526,7 @@ public: void set_use (); int dup (fhandler_base *child); bool is_slow () {return 1;} + void close_one_end (); }; class fhandler_dev_raw: public fhandler_base -- cgit v1.2.3