[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: kqueue in Emacs 25.1?
From: |
Michael Albinus |
Subject: |
Re: kqueue in Emacs 25.1? |
Date: |
Wed, 11 Nov 2015 16:52:33 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Wolfgang Jenkner <address@hidden> writes:
>> This must be emulated,
>> kqueue has no native support for watching directories.
>
> In the sense that a directory can be watched (it's a vnode type) but it
> is not so straightforward to find out what exactly has changed when,
> say, a `write' event arrives for it?
Yes. I've studied the code in libinotify-kqueue and in the
glib/gio/kqueue backend. Both seem to scan the directory for changes,
once there is a "something has changed" kqueue event for a directory.
I plan to implement it based on directory_files_internal (in
dired.c). This is the working horse of directory-files-and-attributes.
Btw, in case you don't know it yet:
<http://people.freebsd.org/~jlemon/papers/kqueue.pdf> gives a pretty
good overview about kqueue.
Best regards, Michael.
- Re: kqueue in Emacs 25.1?, (continued)
- Re: kqueue in Emacs 25.1?, John Wiegley, 2015/11/09
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/10
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/10
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/10
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/11
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/11
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/11
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/11
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/11
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/11
- Re: kqueue in Emacs 25.1?,
Michael Albinus <=
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/12
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/12
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/13
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/13
- Re: kqueue in Emacs 25.1?, Wolfgang Jenkner, 2015/11/13
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/13
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/16
- Re: kqueue in Emacs 25.1?, John Wiegley, 2015/11/16
- Re: kqueue in Emacs 25.1?, Michael Albinus, 2015/11/17
- Re: kqueue in Emacs 25?, Michael Albinus, 2015/11/25