lkml.org 
[lkml]   [2006]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: epoll_wait, epoll_ctl
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


-
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: 2006-01-13 17:15    [W:0.037 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site