aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-03-18 14:25:33 +0000
committerChristopher Faylor <me@cgf.cx>2011-03-18 14:25:33 +0000
commit41045fb74d9413be655838aef5a6089bc6a229d5 (patch)
tree7e23c5bd7a0993468267484cb5dabd39581b3481
parentccbc7fca21d59b18858259767c92389e78f1ad90 (diff)
downloadnewlib-41045fb74d9413be655838aef5a6089bc6a229d5.zip
newlib-41045fb74d9413be655838aef5a6089bc6a229d5.tar.gz
newlib-41045fb74d9413be655838aef5a6089bc6a229d5.tar.bz2
* fhandler.h (DEFAULT_PIPEBUFSIZE): Reset to 64K.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler.h6
2 files changed, 9 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 0bc042f..d0dffbc 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2011-03-18 Christopher Faylor <me.cygwin2011@cgf.cx>
+
+ * fhandler.h (DEFAULT_PIPEBUFSIZE): Reset to 64K.
+
2011-03-18 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (mmap_record::alloc_fh): Initialize nmae strings in fdev to
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index ffe8ee1..f223a11 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -29,7 +29,11 @@ details. */
Using this blocksize in read/write calls in the application results
in a much better performance than using smaller values. */
#define PREFERRED_IO_BLKSIZE ((blksize_t) 65536)
-#define DEFAULT_PIPEBUFSIZE (31 * 1024 * 1024)
+
+/* It also appears that this may be the only acceptable block size for
+ atomic writes to a pipe. It is a shame that we have to make this
+ so small. http://cygwin.com/ml/cygwin/2011-03/msg00541.html */
+#define DEFAULT_PIPEBUFSIZE PREFERRED_IO_BLKSIZE
extern const char *windows_device_names[];
extern struct __cygwin_perfile *perfile_table;