All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kern Sibbald <kern@sibbald.com>
To: "David S. Miller" <davem@davemloft.net>
Cc: alan@lxorguk.ukuu.org.uk, linux-kernel@vger.kernel.org
Subject: Re: PROBLEM: blocking read on socket repeatedly returns EAGAIN
Date: Tue, 16 Aug 2005 23:06:11 +0200	[thread overview]
Message-ID: <200508162306.11873.kern@sibbald.com> (raw)
In-Reply-To: <20050816.113943.50223928.davem@davemloft.net>

On Tuesday 16 August 2005 20:39, David S. Miller wrote:
> From: Kern Sibbald <kern@sibbald.com>
> Date: Tue, 16 Aug 2005 16:38:14 +0200
>
> > Someone is setting nonblocking on my socket !
>
> Glad that's resolved...

Yes, my stupidity.  There was one more fcntl() in my source than I thought :-(

By the way, if a signal is delivered while blocked on a read, IMO, the OS 
should return EINTR.  If it doesn't, oh well, I'll live with it.

I wrote this code 5 years ago and was just now wondering why I bothered to 
test on EAGAIN. Your comment about a signal causing EAGAIN to be returned 
clarifies a lot.


  reply	other threads:[~2005-08-16 21:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-16 13:19 PROBLEM: blocking read on socket repeatedly returns EAGAIN Kern Sibbald
2005-08-16 14:03 ` Alan Cox
2005-08-16 14:12   ` Kern Sibbald
2005-08-16 14:52     ` Alan Cox
2005-08-16 14:38   ` Kern Sibbald
2005-08-16 18:39     ` David S. Miller
2005-08-16 21:06       ` Kern Sibbald [this message]
2005-08-16 18:37   ` David S. Miller
2005-08-16 18:36 ` David S. Miller

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=200508162306.11873.kern@sibbald.com \
    --to=kern@sibbald.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=davem@davemloft.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.