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:40:19 +0200 Message-ID: <87vbbdih3w.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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1442216481 15243 80.91.229.3 (14 Sep 2015 07:41:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Sep 2015 07:41:21 +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:41:09 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 1ZbONx-0001yc-6F for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 09:41:09 +0200 Original-Received: from localhost ([::1]:38904 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbONw-0007pf-JU for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2015 03:41:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbONt-0007oc-7J for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:41:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZbONq-0002rA-0i for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:41:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZbONp-0002r3-TX for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:41:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZbONp-0005KZ-OM for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2015 03:41: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:41: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.144221642620441 (code B ref 21432); Mon, 14 Sep 2015 07:41:01 +0000 Original-Received: (at 21432) by debbugs.gnu.org; 14 Sep 2015 07:40:26 +0000 Original-Received: from localhost ([127.0.0.1]:59493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbONF-0005Jd-It for submit@debbugs.gnu.org; Mon, 14 Sep 2015 03:40:25 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:51139) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZbONE-0005JV-0o for 21432@debbugs.gnu.org; Mon, 14 Sep 2015 03:40:24 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 653E020951 for <21432@debbugs.gnu.org>; Mon, 14 Sep 2015 03:40:23 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Mon, 14 Sep 2015 03:40:23 -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=JR+CPemo1MX79P8jQ3+oaw6VSV0=; b=POv47 gR0kNv3EuqhOJqhQZsPfjXEmM5ESCdgHfymlWAILOJlZKBDa2Bd09qOIRHIIayYq Oz9PsT5zxh10MKK4wrrOOHxoawM8vB+pa92EzJhqKVeLb0sf33mpnv/Qeju3zxhm pXrdrUnvBWDlTugnsMgbBIpeOXFfg1K8SRSf1A= X-Sasl-enc: 7amuMBDZNC8hx/Zv3YVAw9Y7Uw0gjeZw8qonGGXgYW7R 1442216422 Original-Received: from thinkpad-t440p (unknown [2.162.81.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 41471C00014; Mon, 14 Sep 2015 03:40:22 -0400 (EDT) In-Reply-To: <83oah5a35p.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 14 Sep 2015 10:08:50 +0300") 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:106508 Archived-At: Eli Zaretskii 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