From 881a3e14a37313d029e6ec45d08f269e985d5001 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 15 Oct 2020 10:14:09 +0200 Subject: [PATCH] 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 --- man2/seccomp_user_notif.2 | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 -- 2.47.2