aboutsummaryrefslogtreecommitdiffstats
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2018-05-06 10:22:13 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2018-05-06 10:22:13 +0200
commit390795d76a958b2811c695628bb04eae0e69ae7f (patch)
treeca0ac08157e745502072bef4ad022bec8eec98f7 /man7
parent12507e51a426d168c48defc67d3ba223371a73b2 (diff)
downloadman-pages-390795d76a958b2811c695628bb04eae0e69ae7f.tar.gz
inotify.7: Note ENOTDIR error that can occur for IN_ONLYDIR
Note ENOTDIR error that occurs when requesting a watch on a nondirectory with IN_ONLYDIR. Reported-by: Paul Millar <paul.millar@desy.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-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