From: Davide Libenzi <davidel@xmailserver.org>
To: Tony Battersby <tonyb@cybernetics.com>
Cc: Eric Dumazet <dada1@cosmosbay.com>,
Andrew Morton <akpm@linux-foundation.org>,
Jonathan Corbet <corbet@lwn.net>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 1/6] [2.6.29] epoll: fix for epoll_wait sometimes returning events on closed fds
Date: Tue, 24 Feb 2009 12:45:14 -0800 (PST) [thread overview]
Message-ID: <alpine.DEB.2.00.0902241241530.20039@alien.or.mcafeemobile.com> (raw)
In-Reply-To: <49A45A48.6020805@cybernetics.com>
On Tue, 24 Feb 2009, Tony Battersby wrote:
> Ugh. The manpage on Ubuntu 8.04 that I am using doesn't contain this
> lengthy caveat; it just says "A6 Yes." To me it sounds like the
> (newer) manpage is just documenting away a bug/misfeature with "It's
> supposed to do that. Gives it character." rather than expecting the
> kernel developers to make the API behave in a more reasonable way. Just
> my opinion; others may agree or disagree.
>
> If the officially-sanctioned epoll interface is supposed to report
> events on fds that were added, duped, and then the original fd closed,
> then my patch will probably break that behavior. In that case, it will
> be more difficult to fix problem that my patch is trying to fix (which
> doesn't involve dup, dup2, fcntl, fork, etc.). So before I try to think
> of another way, let me ask: do we want to fix the problem that I am
> reporting, or just document it away in the manpage as (apparently) has
> been done before?
No. Like it has been explained, MT applications can report events for
closed files anyway. It is a matter of where the close() happen in time
(pretty easy to figure out if you make a time/thread chart).
As for the other patches, some could be applied, but I didn't look at them
deeply and I need time to review them. Will take time to review them
tomorrow or the day after.
- Davide
next prev parent reply other threads:[~2009-02-24 20:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-24 17:26 Tony Battersby
2009-02-24 18:12 ` Eric Dumazet
2009-02-24 18:44 ` Tony Battersby
2009-02-24 19:52 ` Eric Dumazet
2009-02-24 20:36 ` Tony Battersby
2009-02-24 20:45 ` Davide Libenzi [this message]
2009-02-24 20:52 ` Tony Battersby
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=alpine.DEB.2.00.0902241241530.20039@alien.or.mcafeemobile.com \
--to=davidel@xmailserver.org \
--cc=akpm@linux-foundation.org \
--cc=corbet@lwn.net \
--cc=dada1@cosmosbay.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tonyb@cybernetics.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
all inboxes | Powered by JetHome®