mirror of https://github.com/mkerrisk/man-pages
fanotify.7: Rework text on close()
Closing the fanotify FD was discussed in two places. Merge them into one location, and discard redundant text. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
d3471a460b
commit
be8ba5d879
|
@ -95,10 +95,6 @@ Permission events are requests to the receiving application to decide whether
|
|||
permission for a file access shall be granted.
|
||||
For these events, the recipient must write a response which decides whether
|
||||
access is granted or not.
|
||||
.PP
|
||||
When all file descriptors referring to the fanotify notification group are
|
||||
closed, the fanotify group is released and its resources are freed for reuse by
|
||||
the kernel.
|
||||
.SS fanotify_mark()
|
||||
The
|
||||
.BR fanotify_mark (2)
|
||||
|
@ -316,11 +312,13 @@ If access has been denied, the requesting application call will receive an
|
|||
error
|
||||
.BR EPERM .
|
||||
.SS Closing the fanotify file descriptor
|
||||
To end listening, it is sufficient to
|
||||
.BR close (2)
|
||||
the fanotify file descriptor.
|
||||
The outstanding permission events will be set to allowed, and all resources
|
||||
will be returned to the kernel.
|
||||
.PP
|
||||
When all file descriptors referring to the fanotify notification group are
|
||||
closed, the fanotify group is released and its resources
|
||||
are freed for reuse by the kernel.
|
||||
Upon
|
||||
.BR close (2),
|
||||
outstanding permission events will be set to allowed.
|
||||
.PP
|
||||
The file
|
||||
.I /proc/<pid>/fdinfo/<fd>
|
||||
|
|
Loading…
Reference in New Issue