From cb1bcdf28c7f8c1af0762ab0913729a94ad39aec Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Tue, 23 Aug 2016 10:01:58 +1200 Subject: [PATCH] accept.2: Mention epoll(7) alongside poll()/select() Signed-off-by: Michael Kerrisk --- man2/accept.2 | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/man2/accept.2 b/man2/accept.2 index f04ad9fe2..355b2a2e9 100644 --- a/man2/accept.2 +++ b/man2/accept.2 @@ -124,9 +124,10 @@ or .BR EWOULDBLOCK . .PP In order to be notified of incoming connections on a socket, you can use -.BR select (2) +.BR select (2), +.BR poll (2), or -.BR poll (2). +.BR epoll (7). A readable event will be delivered when a new connection is attempted and you may then call .BR accept () @@ -335,9 +336,10 @@ file, and portable applications are probably wise to include it. There may not always be a connection waiting after a .B SIGIO is delivered or -.BR select (2) +.BR select (2), +.BR poll (2), or -.BR poll (2) +.BR epoll (7) return a readability event because the connection might have been removed by an asynchronous network error or another thread before .BR accept ()