mirror of https://github.com/mkerrisk/man-pages
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:
parent
003798c744
commit
3da9115905
|
@ -743,7 +743,14 @@ returned by the current call to
|
||||||
and the accompanying
|
and the accompanying
|
||||||
.B IN_MOVED_TO
|
.B IN_MOVED_TO
|
||||||
event might be fetched only on the next
|
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
|
.SH BUGS
|
||||||
.\" FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
|
.\" FIXME kernel commit 611da04f7a31b2208e838be55a42c7a1310ae321
|
||||||
.\" implies that unmount events were buggy 2.6.11 to 2.6.36
|
.\" implies that unmount events were buggy 2.6.11 to 2.6.36
|
||||||
|
|
Loading…
Reference in New Issue