emacs-devel
[Top][All Lists]
Advanced

[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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]