linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Select
@ 2000-11-05  6:46 David Feuer
  2000-11-05  9:48 ` Select Andi Kleen
  2000-11-05 12:19 ` Select Alan Cox
  0 siblings, 2 replies; 3+ messages in thread
From: David Feuer @ 2000-11-05  6:46 UTC (permalink / raw)
  To: linux-kernel

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 message has been brought to you by the letter alpha and the number pi.
David Feuer
David_Feuer@brown.edu

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Select
  2000-11-05  6:46 Select David Feuer
@ 2000-11-05  9:48 ` Andi Kleen
  2000-11-05 12:19 ` Select Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Andi Kleen @ 2000-11-05  9:48 UTC (permalink / raw)
  To: David Feuer; +Cc: linux-kernel

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. 


-Andi
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Select
  2000-11-05  6:46 Select David Feuer
  2000-11-05  9:48 ` Select Andi Kleen
@ 2000-11-05 12:19 ` Alan Cox
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Cox @ 2000-11-05 12:19 UTC (permalink / raw)
  To: David Feuer; +Cc: linux-kernel

> 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 

Writer not reader
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-11-05 12:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-05  6:46 Select David Feuer
2000-11-05  9:48 ` Select Andi Kleen
2000-11-05 12:19 ` Select Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).