mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andi Kleen <ak@suse.de>
To: David Feuer <David_Feuer@brown.edu>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Select
Date: Sun, 5 Nov 2000 10:48:52 +0100	[thread overview]
Message-ID: <20001105104852.A25402@gruyere.muc.suse.de> (raw)
In-Reply-To: <4.3.2.7.2.20001105014402.00adee30@postoffice.brown.edu>
In-Reply-To: <4.3.2.7.2.20001105014402.00adee30@postoffice.brown.edu>; from David_Feuer@brown.edu on Sun, Nov 05, 2000 at 01:46:19AM -0500

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/

  reply	other threads:[~2000-11-05  9:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-05  6:46 Select David Feuer
2000-11-05  9:48 ` Andi Kleen [this message]
2000-11-05 12:19 ` Select Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20001105104852.A25402@gruyere.muc.suse.de \
    --to=ak@suse.de \
    --cc=David_Feuer@brown.edu \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®