[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13662: 24.3.50; inotify-add-watch fails in batch mode
From: |
Michael Albinus |
Subject: |
bug#13662: 24.3.50; inotify-add-watch fails in batch mode |
Date: |
Fri, 17 Jan 2014 12:56:51 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
Chong Yidong <cyd@gnu.org> writes:
> Another way to see this is to create a file with the contents
>
> (let* ((temp-file (make-temp-file "inotify-simple"))
> (events 0)
> (wd
> (inotify-add-watch temp-file t (lambda (ev)
> (setq events (1+ events))))))
> (unwind-protect
> (progn
> (with-temp-file temp-file
> (insert "Foo\n"))
> (sit-for 5)
> (message ">> %d <<" events))
> (inotify-rm-watch wd)))
>
> and run `emacs -batch -l foo.el'. This prints ">> 0 <<", indicating
> that the inotify watcher failed to run. If you repeat omitting -batch,
> ">> 4 <<" is printed, as expected.
Should be fixed with r116052. Instead of `sit-for', one needs to apply
`read-event'.
Best regards, Michael.
- bug#13662: 24.3.50; inotify-add-watch fails in batch mode,
Michael Albinus <=
- bug#13662: 24.3.50; inotify-add-watch fails in batch mode, Eli Zaretskii, 2014/01/25
- bug#13662: 24.3.50; inotify-add-watch fails in batch mode, Michael Albinus, 2014/01/26
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Michael Albinus, 2014/01/26
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Michael Albinus, 2014/01/26
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Michael Albinus, 2014/01/27
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Eli Zaretskii, 2014/01/29
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Michael Albinus, 2014/01/30
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Eli Zaretskii, 2014/01/30
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Michael Albinus, 2014/01/31
- bug#16519: 24.3.50; gfile notifications not received in batch mode, Eli Zaretskii, 2014/01/31