fanotify.7: Add comment to example code noting that queue overflow is ignored

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-25 20:07:02 +02:00
parent 3b483820b9
commit 0554d3f77a
1 changed files with 4 additions and 6 deletions

View File

@ -538,12 +538,10 @@ handle_events(int fd)
exit(EXIT_FAILURE);
}
/* Check that the event contains a file descriptor */
.\" FIXME Should the following line actually be:
.\" if (metadata\->fd != FANNOFD)
.\" ?
.\" Or, more generally, the program has a problem inasmuch as it is not
.\" handling queue overflow
/* metadata\->fd contains either FAN_NOFD, indicating a
queue overflow, or a file descriptor (a nonnegative
integer). Here, we simply ignore queue overflow. */
if (metadata\->fd >= 0) {
/* Handle open permission event */