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>2005-02-22 18:39:45 +0300
committerCorinna Vinschen <corinna@vinschen.de>2005-02-22 18:39:45 +0300
commit156d93af29db3ec1205dcff62401b63620d1a8dd (patch)
tree72f1c35ff4962511d04d3bc15017f0fdfd0e9ef7
parent9ba51f6d17f75b71d105f7204d9b46e58cf1b701 (diff)
* select.cc (peek_pipe): Disable new pipe code until there's
a working substitute.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/select.cc7
2 files changed, 12 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 08d6fa970..1752775cb 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2005-02-22 Corinna Vinschen <corinna@vinschen.de>
+ * select.cc (peek_pipe): Disable new pipe code until there's
+ a working substitute.
+
+2005-02-22 Corinna Vinschen <corinna@vinschen.de>
+
* cygwin.din (fdatasync): Export.
* fhandler.cc (fhandler_base::fsync): Return with EINVAL if no
handle is available.
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index 3d4a13a16..eb86d7444 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -517,6 +517,10 @@ out:
fh->get_name ());
else
{
+#if 0
+/* FIXME: This code is not quite correct. There's no better solution
+ so far but to always treat the write side of the pipe as writable. */
+
/* We don't worry about the guard mutex, because that only applies
when from_select is false, and peek_pipe is never called that
way for writes. */
@@ -563,6 +567,9 @@ out:
fpli.WriteQuotaAvailable);
gotone += s->write_ready = true;
}
+#else
+ gotone += s->write_ready = true;
+#endif
}
}