From: Michael Kerrisk Date: Thu, 15 Oct 2020 08:14:09 +0000 (+0200) Subject: seccomp_user_notif.2: Note when FD indicates EOF/(E)POLLHUP in (e)poll/select X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=881a3e14a37313d029e6ec45d08f269e985d5001;p=thirdparty%2Fman-pages.git seccomp_user_notif.2: Note when FD indicates EOF/(E)POLLHUP in (e)poll/select Verified by experiment. Reported-by: Christian Brauner Signed-off-by: Michael Kerrisk --- diff --git a/man2/seccomp_user_notif.2 b/man2/seccomp_user_notif.2 index 29ed25eb20..7a4b9d3b41 100644 --- a/man2/seccomp_user_notif.2 +++ b/man2/seccomp_user_notif.2 @@ -612,6 +612,16 @@ meaning that a notification response can be sent using the operation. .\" FIXME .\" But (how) is the writable/(E)POLLOUT useful? +.IP \(bu +After the last thread using the filter has terminated and been reaped using +.BR waitpid (2) +(or similar), +the file descriptor indicates an end-of-file condition (readable in +.BR select (2); +.BR POLLHUP / EPOLLHUP +in +.BR poll (2)/ +.BR epoll_wait (2)). .SH BUGS If a .BR SECCOMP_IOCTL_NOTIF_RECV