From e10019168653980e20ffdb84db6f2e9c32ba0f57 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 15 May 2014 05:39:22 +0200 Subject: [PATCH] fanotify.7: Minor improvements to Heinrich Schuchardt's patch Signed-off-by: Michael Kerrisk --- man7/fanotify.7 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/man7/fanotify.7 b/man7/fanotify.7 index c2eda97df..1798b1af2 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -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