From fbf39a58cbbd92f3f185bad685c67099cc1ec805 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 20 Aug 2008 02:25:06 +0000 Subject: * fhandler.cc (fhandler_base::wait_overlapped): Always assume that bytes will be non-NULL. Distinguish input result from result derived from WFMO and GetOverlappedResult or res can never be -1. Only raise SIGPIPE when writing. * fhandler.h (fhandler_base::wait_overlapped): Pass first argument by value. * fhandler_fifo.cc (fhandler_fifo::wait): Pass in dummy byte count to wait_overlapped. * pipe.cc (DEFAULT_PIPEBUFSIZE): Define to 65536 explicitly. --- winsup/cygwin/fhandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'winsup/cygwin/fhandler.h') diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 1430b28ed..05ed03c38 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -143,7 +143,7 @@ class fhandler_base void del_my_locks (bool); HANDLE read_state; - int wait_overlapped (bool&, bool, DWORD *) __attribute__ ((regparm (3))); + int wait_overlapped (bool, bool, DWORD *) __attribute__ ((regparm (3))); bool setup_overlapped () __attribute__ ((regparm (1))); void destroy_overlapped () __attribute__ ((regparm (1))); -- cgit v1.2.3