From: Marc Lehmann <schmorp@schmorp.de>
To: linux-kernel@vger.kernel.org
Subject: Re: read returns EAGAIN on a _blocking_ socket, but should not? (solved)
Date: Sun, 25 Dec 2005 17:17:30 +0100 [thread overview]
Message-ID: <20051225161730.GA21379@schmorp.de> (raw)
In-Reply-To: <20051225151611.GA20443@schmorp.de>
On Sun, Dec 25, 2005 at 04:16:11PM +0100, Marc Lehmann <schmorp@schmorp.de> wrote:
> Hi!
>
> The SuS documents EAGAIN for read(2) as:
Argl, false alarm, very very sorry :(
> sendmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\0", 1}], msg_controllen=20, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {3}}, msg_flags=MSG_OOB|MSG_DONTROUTE}, 0) = 1
Due to a bug, this sendmsg call passes the wrong fd (3), which the other
process then sets to non-blocking.
Again, sorry :(
--
The choice of a
-----==- _GNU_
----==-- _ generation Marc Lehmann
---==---(_)__ __ ____ __ pcg@goof.com
--==---/ / _ \/ // /\ \/ / http://schmorp.de/
-=====/_/_//_/\_,_/ /_/\_\ XX11-RIPE
prev parent reply other threads:[~2005-12-25 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-25 15:16 read returns EAGAIN on a _blocking_ socket, but should not? Marc Lehmann
2005-12-25 16:17 ` Marc Lehmann [this message]
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=20051225161730.GA21379@schmorp.de \
--to=schmorp@schmorp.de \
--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.