From: Davide Libenzi <davidel@xmailserver.org>
To: Howard Chu <hyc@symas.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: epoll_wait, epoll_ctl
Date: Fri, 13 Jan 2006 08:12:08 -0800 (PST) [thread overview]
Message-ID: <Pine.LNX.4.63.0601130806240.19904@localhost.localdomain> (raw)
In-Reply-To: <43C7AD5A.2000700@symas.com>
On Fri, 13 Jan 2006, Howard Chu wrote:
> So, what's supposed to happen in a threaded program where one thread does an
> epoll_ctl on an epoll fd while another thread is currently waiting in
> epoll_wait on the same fd? In particular, what happens if a thread does an
> EPOLL_CTL_DEL on one of the fds that is currently being waited on? Is there a
> possibility of an event being returned on the fd even after the EPOLL_CTL_DEL
> completes?
The same thing that happens when you close a file on another thread,
nothing (besides the file being automatically removed from the set).
Removing a file (either by close or by EPOLL_CTL_DEL) is not an event.
- Davide
next prev parent reply other threads:[~2006-01-13 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 13:38 Howard Chu
2006-01-13 16:12 ` Davide Libenzi [this message]
2006-01-13 22:51 ` David Schwartz
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=Pine.LNX.4.63.0601130806240.19904@localhost.localdomain \
--to=davidel@xmailserver.org \
--cc=hyc@symas.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®