Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-07-11 20:37:29 +0400
committerCorinna Vinschen <corinna@vinschen.de>2008-07-11 20:37:29 +0400
commit84e2d2e6cffb7ac9c3f7d8f01e608cfad749f270 (patch)
tree6cc8bd67e826c79d600f6407a15e6a024d05b7c8 /winsup/cygwin/select.cc
parent3e29f67f22eb9ea97487528cebe95f30785bb4e3 (diff)
* select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index d11a1158e..874c14469 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -506,6 +506,10 @@ out:
fh->get_name ());
else
{
+#if 0
+/* FIXME: This code is not quite correct. There's no better solution
+ so far but to make simple assumptions based on WriteQuotaAvailable. */
+
IO_STATUS_BLOCK iosb = {0};
FILE_PIPE_LOCAL_INFORMATION fpli = {0};
@@ -535,10 +539,6 @@ out:
fpli.WriteQuotaAvailable);
gotone += s->write_ready = true;
}
-#if 0
-/* FIXME: This code is not quite correct. There's no better solution
- so far but to make simple assumptions based on WriteQuotaAvailable. */
-
/* If we somehow inherit a tiny pipe (size < PIPE_BUF), then consider
the pipe writable only if it is completely empty, to minimize the
probability that a subsequent write will block. */
@@ -551,6 +551,8 @@ out:
fpli.WriteQuotaAvailable);
gotone += s->write_ready = true;
}
+#else
+ gotone += s->write_ready = true;
#endif
}
}