Re: epoll and shared fd's

From: Bodo Eggert
Date: Thu Feb 28 2008 - 14:17:59 EST


On Thu, 28 Feb 2008, Michael Kerrisk wrote:

> On Tue, Feb 26, 2008 at 7:16 PM, Bodo Eggert <7eggert@xxxxxx> wrote:
> > Michael Kerrisk <mtk.manpages@xxxxxxxxxxxxxx> wrote:
> >
> > > b) It seems to me that you text doesn't quite make the point explicit
> > > enough. I've tried to rewrite it; could you please check:
> > >
> > > A6 Yes, but be aware of the following point. A file
> > > descriptor is a reference to an open file descrip-
> > > tion (see open(2)). Whenever a descriptor is
> > > duplicated via dup(2), dup2(2), fcntl(2) F_DUPFD,
[.........]

> > > Does that seem okay? I plan to include the text in man-pages-2.79.
> >
> > It's hard to read for me, and probably very hard to read for others.
>
> Bodo,
>
> I'm just reviewing this text, trying to see if I can improve it. At
> the moment, I'm a little stuck. can you say a little more about why
> you find it hard to read? that may help me improve it.

I think it's enough to mention that the last copy of the file descriptor
(e.g. by dup or fork) must be closed *or* the file must be explicitely
unregistered (As far as I understand by now).
--
"Aim towards the Enemy."
-Instruction printed on US Rocket Launcher
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/