[lkml]   [2000]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Select
On Sun, Nov 05, 2000 at 01:46:19AM -0500, David Feuer wrote:
> In the discussion on "select bug", some people noted that select does not
> wake up a process until the buffer is half full (or all full, or
> whatever). Does this mean that if a small amount is written to the
> device/pipe the process may never be woken? Or is there a time limit that
> wakes up the process after a certain amount of time if there are _any_
> bytes in the pipe/dev?

This only applies to POLLOUT. Yes, if an send buffer stays 90%
full forever you may be never woken up.

In case of a TCP socket you would be at worst waken up after considerable
time with a ETIMEDOUT.

Pipes do not signal writable until the pipe is empty.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:45    [W:0.054 / U:0.284 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site