aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man7/inotify.77
1 files changed, 6 insertions, 1 deletions
diff --git a/man7/inotify.7 b/man7/inotify.7
index 7e5a5b4df8..85c05a9bcd 100644
--- a/man7/inotify.7
+++ b/man7/inotify.7
@@ -358,7 +358,12 @@ watch list.
.BR IN_ONLYDIR " (since Linux 2.6.15)"
Watch
.I pathname
-only if it is a directory.
+only if it is a directory;
+the error
+.B ENOTDIR
+results if
+.I pathname
+is not a directory.
Using this flag provides an application with a race-free way of
ensuring that the monitored object is a directory.
.RE