fanotify.7: Minor improvements to Heinrich Schuchardt's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-05-15 05:39:22 +02:00
parent 1c61252673
commit e100191686
1 changed files with 5 additions and 5 deletions

View File

@ -481,13 +481,13 @@ capability is set for programs executed by unprivileged users.
.IP *
If a call to
.BR read (2)
processes multiple events from the fanotify queue and an error occurs, the
return value will be the total length of the events successfully copied to
the user-space buffer before the error occurred.
The return value will not be \-1.
processes multiple events from the fanotify queue and an error occurs,
the return value will be the total length of the events successfully
copied to the user-space buffer before the error occurred.
The return value will not be \-1, and
.I errno
will not be set.
Thus, the user program has no way to detect the error.
Thus, the reading application has no way to detect the error.
.SH EXAMPLE
The following program demonstrates the usage of the fanotify API.
It marks the mount point passed as a command-line argument