inotify.7: Mention use of timeout when reading IN_MOVED_TO after IN_MOVED_FROM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-07-21 07:33:17 +02:00
parent 003798c744
commit 3da9115905
1 changed files with 8 additions and 1 deletions

View File

@ -743,7 +743,14 @@ returned by the current call to
and the accompanying
.B IN_MOVED_TO
event might be fetched only on the next
.BR read (2).
.BR read (2),
which should be done with a (small) timeout to allow for the fact that
insertion of the
.BR IN_MOVED_FROM - IN_MOVED_TO
event pair is not atomic,
and also the possibility that there may not be any
.B IN_MOVED_TO
event.
.SH BUGS
.\" FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
.\" implies that unmount events were buggy 2.6.11 to 2.6.36