From: "Henning P. Schmiedehausen" <hps@tanstaafl.de>
To: linux-kernel@vger.kernel.org
Subject: Re: poll() behaves differently in Linux 2.4.1 vs. Linux 2.2.14 (POLLHUP)
Date: Wed, 14 Mar 2001 08:12:06 +0000 (UTC) [thread overview]
Message-ID: <98n94m$5pt$1@forge.intermeta.de> (raw)
In-Reply-To: <20010314015921.19287.qmail@web11808.mail.yahoo.com>, <15022.53815.129522.746120@pizda.ninka.net>
davem@redhat.com (David S. Miller) writes:
>Jeffrey Butler writes:
> > I've noticed that poll() calls on IPv4 sockets do
> > not behave the same under linux 2.4 vs. linux 2.2.14.
> > Linux 2.4 will return POLLHUP for a socket that is not
> > connected (and has never been connected) while Linux
> > 2.2 will not.
> > The following example program demonstrates the
> > problem when it's run under linux 2.4:
>True, this behavior was changed from 2.2.x. We now match the behavior
>of other svr4 systems, in particular Solaris. This new behavior in
>2.4.x will not change.
Hi,
but Jeffrey wrote:
--- cut ---
JB> Other operating systems (not that they are necessarily
JB> correct) also output the same as Linux 2.2.14. I
JB> tried this on FreeBSD 4.4.1, Solaris 5.7 (on a SPARC),
JB> and Windows 2000 with Cygwin 1.1.7.
--- cut ---
This is BSD, SysVR4 and an abomination all behaving like 2.2.x and not
2.4.x (which confuses the heck out of a poll()-using daemon
here... :-) )
I'd prefer not to have too many user space surprises in moving from
2.2 to 2.4.
Regards
Henning
--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH hps@intermeta.de
Am Schwabachgrund 22 Fon.: 09131 / 50654-0 info@intermeta.de
D-91054 Buckenhof Fax.: 09131 / 50654-20
next prev parent reply other threads:[~2001-03-14 8:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-14 1:59 poll() behaves differently in Linux 2.4.1 vs. Linux 2.2.14 (POLLHUP) Jeffrey Butler
2001-03-14 2:06 ` David S. Miller
2001-03-14 8:12 ` Henning P. Schmiedehausen [this message]
2001-03-14 16:28 ` Jeffrey Butler
2001-03-14 19:50 ` kuznet
-- strict thread matches above, loose matches on Subject: below --
2001-03-15 4:00 Jeffrey Butler
2001-03-15 17:22 ` kuznet
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='98n94m$5pt$1@forge.intermeta.de' \
--to=hps@tanstaafl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox