diff options
| author | Juanma Barranquero | 2010-09-28 01:25:27 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-09-28 01:25:27 +0200 |
| commit | 95b6d681b1121e1be8955aa3f79dd39098edf4cf (patch) | |
| tree | 445d016578b131a7435fac83fc1fbd49f3a45877 /src | |
| parent | 9f2d52e714dfa161c9c9393075a3bcdf056a4ac8 (diff) | |
| parent | 0cceab3d5942aef608dc33be4616b77206201115 (diff) | |
| download | emacs-95b6d681b1121e1be8955aa3f79dd39098edf4cf.tar.gz emacs-95b6d681b1121e1be8955aa3f79dd39098edf4cf.zip | |
Merge changes from emacs-23 branch.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 8 | ||||
| -rw-r--r-- | src/dbusbind.c | 4 | ||||
| -rw-r--r-- | src/xgselect.c | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index fac06961ef9..a378097d7fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,13 @@ | |||
| 1 | 2010-09-27 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0". | ||
| 4 | (Bug#7113) | ||
| 5 | |||
| 1 | 2010-09-27 Jan Djärv <jan.h.d@swipnet.se> | 6 | 2010-09-27 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 7 | ||
| 8 | * xgselect.c (xg_select): Clear file descriptors not set from | ||
| 9 | rfds and wfds. | ||
| 10 | |||
| 3 | * process.c (wait_reading_process_output): Add missing FD_CLR | 11 | * process.c (wait_reading_process_output): Add missing FD_CLR |
| 4 | for write_mask (must mirror connect_wait_mask). | 12 | for write_mask (must mirror connect_wait_mask). |
| 5 | 13 | ||
diff --git a/src/dbusbind.c b/src/dbusbind.c index a0881a06f66..ffa02e8e9c9 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -2161,8 +2161,12 @@ be called when the D-Bus reply message arrives. */); | |||
| 2161 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); | 2161 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); |
| 2162 | #ifdef DBUS_DEBUG | 2162 | #ifdef DBUS_DEBUG |
| 2163 | Vdbus_debug = Qt; | 2163 | Vdbus_debug = Qt; |
| 2164 | /* We can also set environment DBUS_VERBOSE=1 in order to see more | ||
| 2165 | traces. */ | ||
| 2164 | #else | 2166 | #else |
| 2165 | Vdbus_debug = Qnil; | 2167 | Vdbus_debug = Qnil; |
| 2168 | /* We do not want to abort. */ | ||
| 2169 | setenv ("DBUS_FATAL_WARNINGS", "0", 1); | ||
| 2166 | #endif | 2170 | #endif |
| 2167 | 2171 | ||
| 2168 | Fprovide (intern_c_string ("dbusbind"), Qnil); | 2172 | Fprovide (intern_c_string ("dbusbind"), Qnil); |
diff --git a/src/xgselect.c b/src/xgselect.c index 56e14fe6e14..487f9882b81 100644 --- a/src/xgselect.c +++ b/src/xgselect.c | |||
| @@ -109,11 +109,17 @@ xg_select (int max_fds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, | |||
| 109 | if (rfds && FD_ISSET (i, rfds)) ++retval; | 109 | if (rfds && FD_ISSET (i, rfds)) ++retval; |
| 110 | else ++our_fds; | 110 | else ++our_fds; |
| 111 | } | 111 | } |
| 112 | else if (rfds) | ||
| 113 | FD_CLR (i, rfds); | ||
| 114 | |||
| 112 | if (have_wfds && FD_ISSET (i, &all_wfds)) | 115 | if (have_wfds && FD_ISSET (i, &all_wfds)) |
| 113 | { | 116 | { |
| 114 | if (wfds && FD_ISSET (i, wfds)) ++retval; | 117 | if (wfds && FD_ISSET (i, wfds)) ++retval; |
| 115 | else ++our_fds; | 118 | else ++our_fds; |
| 116 | } | 119 | } |
| 120 | else if (wfds) | ||
| 121 | FD_CLR (i, wfds); | ||
| 122 | |||
| 117 | if (efds && FD_ISSET (i, efds)) | 123 | if (efds && FD_ISSET (i, efds)) |
| 118 | ++retval; | 124 | ++retval; |
| 119 | } | 125 | } |