notify
notify copied to clipboard
Fix: INotifyWatcher keeps watching deleted paths
This PR fixes #709. Full information about the bug are described in the documentation for the remove_single_descriptor method.
The main problem was, that we tried to remove descriptor from the inotify.watches(), and, if it was completed successfully, it would be deleted from the hash descriptor -> path. But after FS entry deletion its file descriptor is invalidated and causes an error, which interrupts deletion from the hash