From: Steven Dake <sdake@mvista.com>
To: Davide Libenzi <davidel@xmailserver.org>
Cc: Ben Mansell <ben@zeus.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: epoll reporting events when it hasn't been asked to
Date: Thu, 01 Apr 2004 16:29:35 -0700 [thread overview]
Message-ID: <1080862174.9534.112.camel@persist.az.mvista.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0404011125510.2509-100000@bigblue.dev.mdolabs.com>
On Thu, 2004-04-01 at 12:28, Davide Libenzi wrote:
> On Thu, 1 Apr 2004, Ben Mansell wrote:
>
> > > It is a feature. epoll OR user events with POLLHUP|POLLERR so that even if
> > > the user sets the event mask to zero, it can still know when something
> > > like those abnormal condition happened. Which problem do you see with this?
> >
> > What should the application do if it gets events that it didn't ask for?
> > If you choose to ignore them, the next time epoll_wait() is called it
> > will return instantly with these same messages, so the app will spin and
> > eat CPU.
>
> Shouldn't the application handle those exceptional conditions instead of
> ignoring them?
>
>
If an exception occurs (example a socket is disconnected) the socket
should be removed from the fd list. There is really no point in passing
in an excepted fd.
epoll works just like poll and the expected SUS behavior in this regard.
Thanks
-steve
next prev parent reply other threads:[~2004-04-01 23:29 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-01 18:25 Ben Mansell
2004-04-01 19:28 ` Davide Libenzi
2004-04-01 23:29 ` Steven Dake [this message]
2004-04-02 9:04 ` Ben Mansell
2004-04-02 15:22 ` Davide Libenzi
2004-04-02 18:40 ` Is POLLHUP an input-only or bidirectional condition? (was: epoll reporting events when it hasn't been asked to) Jamie Lokier
2004-04-03 12:19 ` Is POLLHUP an input-only or bidirectional condition? Richard Kettlewell
2004-04-03 21:44 ` Is POLLHUP an input-only or bidirectional condition? (was: epoll reporting events when it hasn't been asked to) Davide Libenzi
2004-04-03 22:35 ` Jamie Lokier
2004-04-04 1:28 ` Davide Libenzi
2004-04-04 2:08 ` Jamie Lokier
2004-04-04 2:49 ` Davide Libenzi
2004-04-04 18:51 ` Ben Mansell
2004-04-04 19:41 ` Davide Libenzi
2004-04-04 20:24 ` Jamie Lokier
2004-04-14 17:59 ` epoll reporting events when it hasn't been asked to Dirk Morris
2004-04-14 19:39 ` Jamie Lokier
2004-04-14 20:21 ` Dirk Morris
2004-04-14 21:48 ` Jamie Lokier
-- strict thread matches above, loose matches on Subject: below --
2004-04-01 16:54 Ben
2004-04-01 17:51 ` Davide Libenzi
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=1080862174.9534.112.camel@persist.az.mvista.com \
--to=sdake@mvista.com \
--cc=ben@zeus.com \
--cc=davidel@xmailserver.org \
--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®