Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inotify::read_events handles only a buffer's worth of events.
Fixes #156. Change the documentation of `Inotify::read_events` to match the actual behavior: return an iterator over only as many events can fit in the supplied buffer, not over any available events. It would be possible to make `Events` behave as documented, but it would need to hold a strong reference to `fd` and a mutable reference to `buffer`, and it seems awkward. The `notify` crate's use of `read_events` is easily switched by requesting level-sensitive notification on the inotify file descriptor, which is designed for exactly this sort of situation.
- Loading branch information