mirror of https://github.com/mkerrisk/man-pages
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:
parent
3b483820b9
commit
0554d3f77a
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue