seccomp_unotify.2: Note when FD indicates EOF/(E)POLLHUP in (e)poll/select

Verified by experiment.

Reported-by: Christian Brauner <christian.brauner@canonical.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2020-10-15 10:14:09 +02:00
parent 6048506c77
commit cd3224b7df
1 changed files with 10 additions and 0 deletions

View 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