input_wait_mask, in order to let select() detect, whether a new
message has been arrived.
+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
{
DBusConnection *connection;
DBusError derror;
+ int fd;
/* Parameter check. */
CHECK_SYMBOL (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);