From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted Date: Mon, 14 Sep 2015 09:56:12 +0200 Message-ID: <87r3m1igdf.fsf@gnu.org> References: <87k2s15sfd.fsf@gnu.org> <83oahc7vxr.fsf@gnu.org> <87lhcgvr1t.fsf@gmx.de> <87r3m4hrfq.fsf@gmx.de> <83fv2jbrkm.fsf@gnu.org> <87zj0rh5lb.fsf@gmx.de> <87h9myt96l.fsf@gmx.de> <87zj0pild7.fsf@gnu.org> <83oah5a35p.fsf@gnu.org> <87vbbdih3w.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442217443 30559 80.91.229.3 (14 Sep 2015 07:57:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2015 07:57:23 +0000 (UTC) Cc: michael.albinus@gmx.de, 21432@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 14 09:57:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZbOdR-00019F-PX for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 09:57:09 +0200 Original-Received: from localhost ([::1]:38954 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbOdR-0002u8-4y for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 03:57:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbOdN-0002st-Gc for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:57:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbOdK-00027E-A2 for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39056) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbOdK-000279-6D for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZbOdJ-0005fu-Ql for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:57:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 Sep 2015 07:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21432-submit@debbugs.gnu.org id=B21432.144221737921767 (code B ref 21432); Mon, 14 Sep 2015 07:57:01 +0000 Original-Received: (at 21432) by debbugs.gnu.org; 14 Sep 2015 07:56:19 +0000 Original-Received: from localhost ([127.0.0.1]:59499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbOcd-0005f1-6I for submit@debbugs.gnu.org; Mon, 14 Sep 2015 03:56:19 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:50074) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbOca-0005et-LE for 21432@debbugs.gnu.org; Mon, 14 Sep 2015 03:56:17 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 66943206BE for <21432@debbugs.gnu.org>; Mon, 14 Sep 2015 03:56:16 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 14 Sep 2015 03:56:16 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=yYYXj/Q4N2A8D7VCLHo86w40raI=; b=hVqG9 nPOsJ8w7+lsS+0OS2MTmSHZOsM4zIG6UZGYhi5wwIyOTe2PzhcL1ex8F0FeAEfUZ SkosVsw9aU5tm7Z6DFN4dbnVmh5K5FmEPlDs2Bmo4EyKfwa8u60B593KocqBJKc0 a+JO9xUWCnOvIxPcN9NCGy4EJhRkrdS8SeAIPA= X-Sasl-enc: ec4vFZ9cX6jSx4gd7vuRF9FuQBLxPwEvH/1ux7cGK64X 1442217375 Original-Received: from thinkpad-t440p (unknown [2.162.81.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 61E5AC00016; Mon, 14 Sep 2015 03:56:15 -0400 (EDT) In-Reply-To: <87vbbdih3w.fsf@gnu.org> (Tassilo Horn's message of "Mon, 14 Sep 2015 09:40:19 +0200") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:106509 Archived-At: Tassilo Horn 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. Done, however the descriptors still don't become invalid when deleting the parent directory of the watched file or directory. I guess, that's a problem in the inotify and TRAMP implementations then. Bye, Tassilo