summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/select.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc7
1 files changed, 7 insertions, 0 deletions
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
}
}