GNU bug report logs - #21432
25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted

Previous Next

Package: emacs;

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


Message #17 received at 21432 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 21432 <at> debbugs.gnu.org, tsdh <at> gnu.org
Subject: Re: bug#21432: 25.0.50;
 file-notify-rm-watch (inotify) errors if watched dir is deleted
Date: Tue, 08 Sep 2015 18:51:52 +0300
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Cc: 21432 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
> Date: Tue, 08 Sep 2015 09:47:07 +0200
> 
> `file-notify-valid-p' is a nice idea; I will see how I could add it. At
> least for the w32 case I would need some help from Eli, in order to
> see whether the native library supports such a check.

What happens on w32 when a watched directory is deleted is that the
thread which watches the changes exits (with an abnormal status), but
the object created to watch the changes still exists, and can be
easily tested for being "invalid".

So if you want to implement file-notify-valid-p, go ahead; the w32
side will be almost trivial.




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.