diff --git a/man7/fanotify.7 b/man7/fanotify.7 index d52962914..9cda9fae7 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -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 */