[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file watch feature missing on darwin

From: Jan D.
Subject: Re: file watch feature missing on darwin
Date: Wed, 22 Jan 2014 10:00:49 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:17.0) Gecko/20130328 Thunderbird/17.0.5

Michael Albinus skrev 2014-01-17 13:10:
Michael Albinus <address@hidden> writes:

Jan Djärv <address@hidden> writes:


Hi Jan,

AFAIK, using Glib and NS just means calling xg_select instead of
pselect in one place.  It is not done, because there has been no need
for it.

Ah, thanks for the hint. I'll take it into account when I integrate that
code. In case of problems I'll ask you :-)

Here I am already ...

I'm just checking how to receive file notification events in batch
mode. It works fine when inotify.c is linked with Emacs, using
(read-event ...), but I'm not able to receive events when gfilenotify.c
is linked.

No problem when Emacs runs interactively. Do you know, how I could
retrieve events in that case?

The select in the NS port runs in another thread. So just switching to xg_select will not do. You have to explicitly check if in batch mode, then check if GLib has file descriptors we don't know about, and then call xg_select in the main thread.

        Jan D.

reply via email to

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