Re: epoll vs stdin/stdout

Davide Libenzi (davidel@xmailserver.org)
Tue, 8 Jul 2003 08:42:29 -0700 (PDT)


On Tue, 8 Jul 2003, Eric Varsanyi wrote:

> On Mon, Jul 07, 2003 at 04:26:21PM -0700, Davide Libenzi wrote:
> > On Mon, 7 Jul 2003, Davide Libenzi wrote:
> > Try out this one, either over 2.5.74 or over an existing epoll-patched
> > 2.4.{20,21} ...
>
> This appears to be working as advertised, thanks!
>
> IMO it doesn't seem that evil to deliver events per-fd rather than
> per-file, this is similar to the semantic you get from select() on
> fd's sharing an object. To be surprised someone would have to have
> coded to the (previous) sharing visible nature of epoll and be expecting
> the EEXIST back when sharing was in play.

It is not that events are delivered per-fd. If 3 and 4 refer to the same
file* and you register both 3 and 4 with EPOLLIN, you'll get two events if
an EPOLLIN happen. One for 3 and one for 4.

- Davide

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/