[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading D-Bus messages
From: |
Michael Albinus |
Subject: |
Re: Reading D-Bus messages |
Date: |
Sat, 15 Aug 2009 21:16:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
YAMAMOTO Mitsuharu <address@hidden> writes:
> I mentioned DBusWatch because the documentation of
> dbus_connection_get_socket/dbus_connection_get_unix_fd says "DO NOT
> read or write to the file descriptor, or try to select() on it; use
> DBusWatch for main loop integration." For your purpose, doing
> select() on the file/socket descriptor in wait_reading_process_output
> (in process.c) is most important.
I've written a function xd_pending_messages, which uses internally
dbus_connection_get_dispatch_status. By this I could avoid select() on
the file descriptor. D-Bus messages are now received without keyboard
input, also when Emacs runs in terminal mode. However, there is a delay
of some seconds.
xd_pending_messages is called in readable_events, which means that it is
checked inside wait_reading_process_output. Is there a possibility to
trigger a more frequent check via detect_input_pending?
Best regards, Michael.
- Reading D-Bus messages, Michael Albinus, 2009/08/12
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/12
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/12
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/12
- Re: Reading D-Bus messages,
Michael Albinus <=
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/15
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/16
- Re: Reading D-Bus messages, YAMAMOTO Mitsuharu, 2009/08/16
- Re: Reading D-Bus messages, Daniel Pittman, 2009/08/17
- Re: Reading D-Bus messages, Michael Albinus, 2009/08/18