mirror of https://github.com/mkerrisk/man-pages
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>
This commit is contained in:
parent
12507e51a4
commit
390795d76a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue