all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Albinus <michael.albinus@gmx.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21432@debbugs.gnu.org, tsdh@gnu.org
Subject: bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted
Date: Tue, 15 Sep 2015 13:54:08 +0200	[thread overview]
Message-ID: <87zj0nx5i7.fsf@gmx.de> (raw)
In-Reply-To: <83lhc8852n.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 15 Sep 2015 11:22:40 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>   ======================================================================
>   1 -> (file-notify-handle-event (file-notify (100272320 added
> ".#-emacsa05420") file-notify-callback))
>   | 2 -> (file-notify-callback (100272320 added ".#-emacsa05420"))
>   | 2 <- file-notify-callback: nil
>   1 <- file-notify-handle-event: nil
>   ======================================================================
>   1 -> (file-notify-handle-event (file-notify (100272320 modified
> ".#-emacsa05420") file-notify-callback))
>   | 2 -> (file-notify-callback (100272320 modified ".#-emacsa05420"))
>   | 2 <- file-notify-callback: nil
>   1 <- file-notify-handle-event: nil
>
> I'm confused: why does it mention a lock file instead of some file in
> temporary-file-directory?  Is some variable missing a value?

Well, the lock files are from the write-region call. I see something
similar for inotify:

======================================================================
1 -> (file-notify-handle-event (file-notify (2 (create) ".#file-notify-test20231Yhx" 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (create) ".#file-notify-test20231Yhx" 0))
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil
======================================================================
1 -> (file-notify-handle-event (file-notify (2 (create) "file-notify-test20231Yhx" 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (create) "file-notify-test20231Yhx" 0))
| | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") created "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx"))
| | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") (2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))])
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil
======================================================================
1 -> (file-notify-handle-event (file-notify (2 (modify) "file-notify-test20231Yhx" 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (modify) "file-notify-test20231Yhx" 0))
| | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") changed "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx"))
| | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") #8=(2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9="/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))])
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil
======================================================================
1 -> (file-notify-handle-event (file-notify (2 (delete) ".#file-notify-test20231Yhx" 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (delete) ".#file-notify-test20231Yhx" 0))
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil
======================================================================
1 -> (file-notify-handle-event (file-notify (2 (delete) "file-notify-test20231Yhx" 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (delete) "file-notify-test20231Yhx" 0))
| | 3 -> (file-notify--test-event-handler ((2 . "file-notify-test20231Yhx") deleted "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx"))
| | 3 <- file-notify--test-event-handler: ([cl-struct-ert-test-passed #2="" ((#3=(should (equal (car file-notify--test-event) file-notify--test-desc)) :form (equal (1 . #1="file-notify-test20231-Ml") #4=(1 . #1#)) :value t :explanation nil) (#5=(should (string-equal (file-notify--event-file-name file-notify--test-event) file-notify--test-tmpfile)) :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6="/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (1 . #1#) #4#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231MPA/file-notify-test20231-Ml" #6#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7="file-notify-test20231Yhx") #8=(2 . #7#)) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9="/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx") :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))] [cl-struct-ert-test-passed #2# ((#3# :form (equal (2 . #7#) #8#) :value t :explanation nil) (#5# :form (string-equal "/tmp/file-notify-test-parent20231LXr/file-notify-test20231Yhx" #9#) :value t))])
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil
======================================================================
1 -> (file-notify-handle-event (file-notify (2 (ignored) nil 0) file-notify-callback))
| 2 -> (file-notify-callback (2 (ignored) nil 0))
| 2 <- file-notify-callback: nil
1 <- file-notify-handle-event: nil

`file-notify--test-event-handler' hasn't been called for the lock files,
because it was enabled for the test file only (that's the intention of
this test case). It isn't clear to me why
`file-notify--test-event-handler' hasn't been called for your test
file. That must be something in w32notify.c.

Best regards, Michael.





  reply	other threads:[~2015-09-15 11:54 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-08  6:36 bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted Tassilo Horn
2015-09-08  7:47 ` Michael Albinus
2015-09-08  8:11   ` Tassilo Horn
2015-09-08 15:51   ` Eli Zaretskii
2015-09-08 15:49 ` Eli Zaretskii
2015-09-08 16:01   ` Michael Albinus
2015-09-12 10:18     ` Michael Albinus
2015-09-12 15:11       ` Eli Zaretskii
2015-09-12 18:09         ` Michael Albinus
2015-09-13 19:23           ` Michael Albinus
2015-09-14  6:08             ` Tassilo Horn
2015-09-14  7:08               ` Eli Zaretskii
2015-09-14  7:40                 ` Tassilo Horn
2015-09-14  7:56                   ` Tassilo Horn
2015-09-14 13:22                     ` Eli Zaretskii
2015-09-14 20:23                       ` Michael Albinus
2015-09-15  7:38                         ` Eli Zaretskii
2015-09-15  8:00                           ` Michael Albinus
2015-09-15  8:22                             ` Eli Zaretskii
2015-09-15 11:54                               ` Michael Albinus [this message]
2015-09-15 12:51                                 ` Eli Zaretskii
2015-09-15 12:56                                   ` Michael Albinus
2015-09-16 14:45                                   ` Michael Albinus
2015-09-16 17:08                                     ` Eli Zaretskii
2015-09-16 17:26                                       ` Michael Albinus
2015-09-16 17:55                                         ` Eli Zaretskii
2015-09-16 18:28                                           ` Michael Albinus
2015-09-15  5:53                       ` Tassilo Horn
2015-09-14  7:35         ` Eli Zaretskii
2015-09-14  7:37           ` Michael Albinus
2015-09-15 13:02           ` Michael Albinus
2015-09-15 13:56             ` Eli Zaretskii
2015-09-16 13:54               ` Michael Albinus
2015-09-20 17:23 ` Michael Albinus
2015-09-20 19:19   ` Eli Zaretskii
2015-09-21 13:40     ` Michael Albinus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zj0nx5i7.fsf@gmx.de \
    --to=michael.albinus@gmx.de \
    --cc=21432@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=tsdh@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.