summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pipe.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2008-08-20 02:25:06 +0000
committerChristopher Faylor <me@cgf.cx>2008-08-20 02:25:06 +0000
commitfbf39a58cbbd92f3f185bad685c67099cc1ec805 (patch)
tree52d78923e8a61c058d6ecfba274985cd8ff549e8 /winsup/cygwin/pipe.cc
parentec8a7e416f570407fe5360959272418a2b4c79f8 (diff)
downloadcygnal-fbf39a58cbbd92f3f185bad685c67099cc1ec805.tar.gz
cygnal-fbf39a58cbbd92f3f185bad685c67099cc1ec805.tar.bz2
cygnal-fbf39a58cbbd92f3f185bad685c67099cc1ec805.zip
* 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.
Diffstat (limited to 'winsup/cygwin/pipe.cc')
-rw-r--r--winsup/cygwin/pipe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pipe.cc b/winsup/cygwin/pipe.cc
index 2cad3fe26..b9e8b176f 100644
--- a/winsup/cygwin/pipe.cc
+++ b/winsup/cygwin/pipe.cc
@@ -490,7 +490,7 @@ fhandler_pipe::fstatvfs (struct statvfs *sfs)
return -1;
}
-#define DEFAULT_PIPEBUFSIZE (16 * PIPE_BUF)
+#define DEFAULT_PIPEBUFSIZE 65536
extern "C" int
pipe (int filedes[2])