* select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.

This commit is contained in:
Corinna Vinschen 2008-07-11 16:37:29 +00:00
parent 3e29f67f22
commit 84e2d2e6cf
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2008-07-11 Corinna Vinschen <corinna@vinschen.de>
* select.cc (peek_pipe): Temporarily revert patch from 2008-05-30.
2008-07-11 Corinna Vinschen <corinna@vinschen.de> 2008-07-11 Corinna Vinschen <corinna@vinschen.de>
Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH to Change length for domain buffers from INTERNET_MAX_HOST_NAME_LENGTH to

View File

@ -506,6 +506,10 @@ out:
fh->get_name ()); fh->get_name ());
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};
@ -535,10 +539,6 @@ out:
fpli.WriteQuotaAvailable); fpli.WriteQuotaAvailable);
gotone += s->write_ready = true; 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 /* If we somehow inherit a tiny pipe (size < PIPE_BUF), then consider
the pipe writable only if it is completely empty, to minimize the the pipe writable only if it is completely empty, to minimize the
probability that a subsequent write will block. */ probability that a subsequent write will block. */
@ -551,6 +551,8 @@ out:
fpli.WriteQuotaAvailable); fpli.WriteQuotaAvailable);
gotone += s->write_ready = true; gotone += s->write_ready = true;
} }
#else
gotone += s->write_ready = true;
#endif #endif
} }
} }