[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir
From: |
Michael Albinus |
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 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
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.
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, (continued)
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/13
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Tassilo Horn, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Tassilo Horn, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Tassilo Horn, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted,
Michael Albinus <=
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/16
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/16
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/16
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/16
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/16
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Tassilo Horn, 2015/09/15
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Eli Zaretskii, 2015/09/14
- bug#21432: 25.0.50; file-notify-rm-watch (inotify) errors if watched dir is deleted, Michael Albinus, 2015/09/14