Commit a0645cdd authored by Michael Albinus's avatar Michael Albinus

* dbusbind.c (xd_initialize): Add connection file descriptor to

input_wait_mask, in order to let select() detect, whether a new
message has been arrived.
parent 19261da4
2009-08-16 Michael Albinus <michael.albinus@gmx.de>
* dbusbind.c (xd_initialize): Add connection file descriptor to
input_wait_mask, in order to let select() detect, whether a new
message has been arrived.
2009-08-15 Michael Albinus <michael.albinus@gmx.de>
* dbusbind.c (xd_get_dispatch_status, xd_pending_messages): New
......
......@@ -696,6 +696,7 @@ xd_initialize (bus)
{
DBusConnection *connection;
DBusError derror;
int fd;
/* Parameter check. */
CHECK_SYMBOL (bus);
......@@ -716,6 +717,11 @@ xd_initialize (bus)
if (connection == NULL)
XD_SIGNAL2 (build_string ("No connection"), bus);
/* Add connection file descriptor to input_wait_mask, in order to
let select() detect, whether a new message has been arrived. */
if (dbus_connection_get_unix_fd (connection, &fd))
add_keyboard_wait_descriptor (fd);
/* Cleanup. */
dbus_error_free (&derror);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment