mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Davide Libenzi <davidel@xmailserver.org>
To: Ben <linux-kernel-junk-email@slimyhorror.com>
Cc: Andrew Morton <akpm@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Fw: epoll and fork()
Date: Wed, 3 Mar 2004 02:29:35 -0800 (PST)	[thread overview]
Message-ID: <Pine.LNX.4.44.0403030225480.25251-100000@bigblue.dev.mdolabs.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0403021527360.20736@baphomet.bogo.bogus>

On Tue, 2 Mar 2004, Ben wrote:

> child can close an inherited fd without affecting the parent), simply
> because the only connection a process has with epoll is the file
> descriptor. I suppose if you think of epoll_ctl() and epoll_wait() as
> write()s and read()s on the file descriptor, then it makes sense that
> these operations would affect both processes.

Note that if the parent or the child does close an fd, this does not get 
automatically unregistered from the epoll fd of the other task. An fd can 
be unregistered from an epoll fd either explicitly with an epoll_ctl() or 
implicitly when the use count of the underlying file* goes to zero.



- Davide



      parent reply	other threads:[~2004-03-03 10:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20040302050233.3b33188b.akpm@osdl.org>
2004-03-02 15:05 ` Davide Libenzi
2004-03-02 15:25   ` Chris Friesen
2004-03-03 10:38     ` Davide Libenzi
2004-03-02 15:38   ` Ben
2004-03-02 15:44     ` Mark Mielke
2004-03-03 10:29     ` Davide Libenzi [this message]

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.44.0403030225480.25251-100000@bigblue.dev.mdolabs.com \
    --to=davidel@xmailserver.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel-junk-email@slimyhorror.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®