* select.cc (peek_pipe): Turn on (temporarily?) the experimental code which

tries to determine when a pipe is writable.
This commit is contained in:
Christopher Faylor 2009-06-29 14:32:58 +00:00
parent 7fc7ee1726
commit 9adef9ffef
2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2009-06-29 Christopher Faylor <me+cygwin@cgf.cx>
* select.cc (peek_pipe): Turn on (temporarily?) the experimental code
which tries to determine when a pipe is writable.
2009-06-28 Christopher Faylor <me+cygwin@cgf.cx> 2009-06-28 Christopher Faylor <me+cygwin@cgf.cx>
* select.cc (peek_pipe): Use has_ongoing_io() to determine if the pipe * select.cc (peek_pipe): Use has_ongoing_io() to determine if the pipe

View File

@ -517,10 +517,6 @@ out:
s->write_ready = false; s->write_ready = false;
else 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}; IO_STATUS_BLOCK iosb = {0};
FILE_PIPE_LOCAL_INFORMATION fpli = {0}; FILE_PIPE_LOCAL_INFORMATION fpli = {0};
@ -562,9 +558,6 @@ out:
fpli.WriteQuotaAvailable); fpli.WriteQuotaAvailable);
gotone += s->write_ready = true; gotone += s->write_ready = true;
} }
#else
gotone += s->write_ready = true;
#endif
} }
} }