Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using information from /proc #95

Open
hannobraun opened this issue Oct 11, 2017 · 0 comments
Open

Consider using information from /proc #95

hannobraun opened this issue Oct 11, 2017 · 0 comments

Comments

@hannobraun
Copy link
Owner

From the inotify man page:

The set of watch descriptors that is being monitored via an inotify file descriptor can be viewed via the entry for the inotify file descriptor in the process's /proc/[pid]/fdinfo directory. See proc(5) for further details.

We're not currently using this information, but it might be useful. For example, it might be possible to detect whether inotify_add_watch added a new watch or updated an existing one. This might have implications for #74.

I'm not currently aware what kind of performance overhead is associated with access to the /proc filesystem. This should be a consideration when making a decision about this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant