From be8ba5d87956266608b00fd0b8906de382552d4d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 25 Apr 2014 10:53:38 +0200 Subject: [PATCH] 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 --- man7/fanotify.7 | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/man7/fanotify.7 b/man7/fanotify.7 index a6f56eaac..ed7e45458 100644 --- a/man7/fanotify.7 +++ b/man7/fanotify.7 @@ -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//fdinfo/