mirror of https://github.com/mkerrisk/man-pages
fanotify.7: Minor improvements to Heinrich Schuchardt's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
1c61252673
commit
e100191686
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue