lkml.org 
[lkml]   [2004]   [Apr]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: epoll reporting events when it hasn't been asked to
On Thu, 1 Apr 2004, Ben wrote:

> This is odd. The epoll_ctl() got rid of all events for FD 7, yet the
> epoll_wait() following it returns event 16 (EPOLLHUP). Is this a bug?
> I don't normally see this behaviour for most connections, is it perhaps
> to do with the read returning ECONNRESET ?

It is a feature. epoll OR user events with POLLHUP|POLLERR so that even if
the user sets the event mask to zero, it can still know when something
like those abnormal condition happened. Which problem do you see with this?



- 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/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.033 / U:2.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site