inotify.7: Add further detail to the watch descriptor reuse bug

As well as inotify_rm_watch(), file deletion and unmounting a
filesystem can also cause a watch descriptor to be deleted.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-06-23 09:43:46 +02:00
parent 975d7f3751
commit e530e367e2
1 changed files with 3 additions and 1 deletions

View File

@ -758,7 +758,9 @@ unread event.
As of Linux 3.15, the following bug exists:
.\" FIXME https://bugzilla.kernel.org/show_bug.cgi?id=77111
When a watch descriptor is removed by calling
.BR inotify_rm_watch (2),
.BR inotify_rm_watch (2)
(or because a watch file is deleted or the filesystem
that contains it is unmounted),
any pending unread events for that watch descriptor remain available to read.
As watch descriptors are subsequently allocated with
.BR inotify_add_watch (2),