From c835f12b9b3f6fc0a301ca801863e71aeea01823 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 9 Jul 2014 13:37:46 +1000 Subject: [PATCH] epoll_ctl.2: minor clarification concerning when a WAKEUP event is "processed" I guess it should be obvious, but it never hurts to be explicit. When the epoll file descriptor is closed all events are assumed to be "processed". Also if the event is removed with EPOLL_CTL_DEL or the EPOLLWAKEUP flag is removed with EPOLL_CTL_MOD the event will be "processed". Signed-off-by: NeilBrown Signed-off-by: Michael Kerrisk --- man2/epoll_ctl.2 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/man2/epoll_ctl.2 b/man2/epoll_ctl.2 index 2936bc7e9..74a09b6c2 100644 --- a/man2/epoll_ctl.2 +++ b/man2/epoll_ctl.2 @@ -173,7 +173,14 @@ until the next call to .BR epoll_wait (2) on the same .BR epoll (7) -file descriptor. +file descriptor, +the closure of that file descriptor, +the removal of the event file descriptor with +.BR EPOLL_CTL_DEL , +or the clearing of +.B EPOLLWAKEUP +for the event file descriptor with +.BR EPOLL_CTL_MOD . See also BUGS. .SH RETURN VALUE When successful,