]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
seccomp_user_notif.2: Note when FD indicates EOF/(E)POLLHUP in (e)poll/select
authorMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 15 Oct 2020 08:14:09 +0000 (10:14 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Sun, 25 Oct 2020 21:08:30 +0000 (22:08 +0100)
Verified by experiment.

Reported-by: Christian Brauner <christian.brauner@canonical.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/seccomp_user_notif.2

index 29ed25eb206b60813779225769bde7fdb1717ed8..7a4b9d3b41753a34daf5a68e31c7add057cc0044 100644 (file)
@@ -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