From: Nick Palmer <nick@sluggardy.net>
To: khandelw@cs.fsu.edu
Cc: Alex Riesen <fork0@users.sourceforge.net>,
linux-kernel <linux-kernel@vger.kernel.org>,
netdev@oss.sgi.com
Subject: Re: select implementation not POSIX compliant?
Date: Fri, 13 Aug 2004 13:13:38 -0700 [thread overview]
Message-ID: <411D20F2.3030101@sluggardy.net> (raw)
In-Reply-To: <1092256397.512046f64c822@system.cs.fsu.edu>
khandelw@cs.fsu.edu wrote:
> select should work for any type of socket. Its based on the type of file
> descriptor not whether it is stream/dgram.
Agreed, but as Alex Riesen has shown with his test case, the behavior
differs based on the type of socket. This doesn't seem quite right, but
was not my original point.
> so why should recvmsg return error???? upon closing the socket in
other thread?
> wouldn't the socket linger around for some time...
Only if SO_LINGER is on, and then only for the linger time. I would
expect recvmsg to set errno to EINTR or EINVAL indicating that the recv
message was interrupted or is no longer valid since the socket has
closed. This is not the case. Instead it returns 0, and doesn't set errno.
-Nick
next prev parent reply other threads:[~2004-08-13 20:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <37062.66.93.180.209.1092243659.squirrel@66.93.180.209>
2004-08-11 19:40 ` select implementation not POSIX compliant? Alex Riesen
2004-08-11 20:33 ` khandelw
2004-08-11 21:23 ` Alex Riesen
2004-08-13 20:13 ` Nick Palmer [this message]
2004-08-11 21:57 ` Steven Dake
2004-08-13 20:12 ` Nick Palmer
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=411D20F2.3030101@sluggardy.net \
--to=nick@sluggardy.net \
--cc=fork0@users.sourceforge.net \
--cc=khandelw@cs.fsu.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
/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;
as well as URLs for NNTP newsgroup(s).