Not logged in
Log in now
Create an account
Subscribe to LWN
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
Can the user program close the fd after registering the notification, or does every registered fd need to remain open?
Looking at inotify again
Posted Jul 11, 2005 12:43 UTC (Mon) by amh (guest, #1902)
Several questions in this thread can be answered by looking at the patch. For example, at http://www.kernel.org/pub/linux/kernel/people/rml/inotify/v2.6/0.23/inotify-0.23-rml-2.6.13-rc2-1.patch.
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.
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds