mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jeffrey Butler <jeffreymbutler@yahoo.com>
To: "David S. Miller" <davem@redhat.com>
Cc: 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:28:05 -0800 (PST)	[thread overview]
Message-ID: <20010314162805.93928.qmail@web11802.mail.yahoo.com> (raw)
In-Reply-To: <15022.53815.129522.746120@pizda.ninka.net>

What version of Solaris should the poll() call behave
like?  I tried the test program that I posted in the
original post on this thread on a couple of versions
of Solaris, and they all behaved like Linux 2.2, not
Linux 2.4.

The following version strings are from sysinfo on the
Solaris machines that I tested:

Machine 1:
CPU Type is               sparcv8plus+vis
App Architecture is       sparc
Kernel Architecture is    sun4u
OS Name is                SunOS
OS Version is             5.7
OS Distribution is        Solaris 7 5/99
s998s_u2SunServer_09 SPARC
Kernel Version is         SunOS Release 5.7 Version
Generic_106541-11 [UNIX(R) System V Release 4.0]

Machine 2:
SunOS xxx.xxx.xxx.xxx 5.5.1 Generic_103640-29 sun4u
sparc SUNW,Ultra-5_10.

Does Linux 2.4 poll() behave like Solaris 8 poll()
with respect to poll()?  If I had access to a Solaris
8 machine I would have tested it because I realize the
Solaris versions are a bit out of date.

-jeff

--- "David S. Miller" <davem@redhat.com> wrote:
> 
> 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.
> 
> Later,
> David S. Miller
> davem@redhat.com


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/

  parent reply	other threads:[~2001-03-14 16:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-14  1:59 Jeffrey Butler
2001-03-14  2:06 ` David S. Miller
2001-03-14  8:12   ` Henning P. Schmiedehausen
2001-03-14 16:28   ` Jeffrey Butler [this message]
2001-03-14 19:50   ` kuznet
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=20010314162805.93928.qmail@web11802.mail.yahoo.com \
    --to=jeffreymbutler@yahoo.com \
    --cc=davem@redhat.com \
    --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

all inboxes | Powered by JetHome®