diff options
| author | Michael Albinus | 2009-08-16 12:23:23 +0000 |
|---|---|---|
| committer | Michael Albinus | 2009-08-16 12:23:23 +0000 |
| commit | a0645cddf04b22c60dd3291fe6f83c18958995ad (patch) | |
| tree | 6a899611fb0fe275271fd6a83cabd7632b34c740 /src/dbusbind.c | |
| parent | 19261da4e2cdfbe382c931c97c8745727ab8ab4d (diff) | |
| download | emacs-a0645cddf04b22c60dd3291fe6f83c18958995ad.tar.gz emacs-a0645cddf04b22c60dd3291fe6f83c18958995ad.zip | |
* 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.
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index aa4efa7ca33..cde4dba3a23 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -696,6 +696,7 @@ xd_initialize (bus) | |||
| 696 | { | 696 | { |
| 697 | DBusConnection *connection; | 697 | DBusConnection *connection; |
| 698 | DBusError derror; | 698 | DBusError derror; |
| 699 | int fd; | ||
| 699 | 700 | ||
| 700 | /* Parameter check. */ | 701 | /* Parameter check. */ |
| 701 | CHECK_SYMBOL (bus); | 702 | CHECK_SYMBOL (bus); |
| @@ -716,6 +717,11 @@ xd_initialize (bus) | |||
| 716 | if (connection == NULL) | 717 | if (connection == NULL) |
| 717 | XD_SIGNAL2 (build_string ("No connection"), bus); | 718 | XD_SIGNAL2 (build_string ("No connection"), bus); |
| 718 | 719 | ||
| 720 | /* Add connection file descriptor to input_wait_mask, in order to | ||
| 721 | let select() detect, whether a new message has been arrived. */ | ||
| 722 | if (dbus_connection_get_unix_fd (connection, &fd)) | ||
| 723 | add_keyboard_wait_descriptor (fd); | ||
| 724 | |||
| 719 | /* Cleanup. */ | 725 | /* Cleanup. */ |
| 720 | dbus_error_free (&derror); | 726 | dbus_error_free (&derror); |
| 721 | 727 | ||