User: Password:
Subscribe / Log in / New account

Looking at inotify again

Looking at inotify again

Posted Jul 11, 2005 12:43 UTC (Mon) by amh (guest, #1902)
In reply to: Looking at inotify again by jwb
Parent article: Looking at inotify again

Can the user program close the fd after registering the notification, or does every registered fd need to remain open?

Several questions in this thread can be answered by looking at the patch. For example, at

Indeed the user program can close the fd of the file/directory being watched. Closing the fd associated with the watch (which can be associated with many files/directories) will turn the watch off.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds