GNU bug report logs -
#21432
25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted
Previous Next
Reported by: Tassilo Horn <tsdh <at> gnu.org>
Date: Tue, 8 Sep 2015 06:37:01 UTC
Severity: normal
Found in version 25.0.50
Done: Michael Albinus <michael.albinus <at> gmx.de>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> What seems wrong to me is that the descriptors stay valid even when
>> the watched file or directory is deleted. For files this might be ok
>> (though maybe inotify-specific) because when I create a new file with
>> the same name, the watch will trigger.
>>
>> However, the current hehavior is certainly wrong for directories.
>> When I deleted the watched directory, the descriptor is still valid,
>> but calling file-notify-rm-watch on it signals an error.
>
> AFAIR, filenotify.el watches the parent directory of the
> file/directory you asked it to watch. So to see the invalid-p method
> in action you need to remove the parent, not the directory itself.
Ah, I see. I'll adapt the tests accordingly.
Bye,
Tassilo
This bug report was last modified 9 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.