lkml.org 
[lkml]   [2005]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: PROBLEM: blocking read on socket repeatedly returns EAGAIN
Date
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.

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

\
 
 \ /
  Last update: 2005-08-16 23:10    [W:0.113 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site