aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorPaul Eggert2013-06-05 10:04:13 -0700
committerPaul Eggert2013-06-05 10:04:13 -0700
commitf019a684847950c24f5dd8ee8cfdd40d3511ba83 (patch)
tree1226d99c68968dd9b51cc0c15eba0e3c4ce670d0 /src/xterm.c
parent28f5da6df34eb64677e25afd001c1f48b012aec7 (diff)
downloademacs-f019a684847950c24f5dd8ee8cfdd40d3511ba83.tar.gz
emacs-f019a684847950c24f5dd8ee8cfdd40d3511ba83.zip
Chain glib's SIGCHLD handler from Emacs's (Bug#14474).
* process.c (dummy_handler): New function. (lib_child_handler): New static var. (handle_child_signal): Invoke it. (catch_child_signal): If a library has set up a signal handler, save it into lib_child_handler. (init_process_emacs): If using glib and not on Windows, tickle glib's child-handling code so that it initializes its private SIGCHLD handler. * syssignal.h (SA_SIGINFO): Default to 0. * xterm.c (x_term_init): Remove D-bus hack that I installed on May 31; it should no longer be needed now.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 7038de7039f..7505aa3936b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -9897,13 +9897,6 @@ x_term_init (Lisp_Object display_name, char *xrm_option, char *resource_name)
9897 9897
9898 XSetLocaleModifiers (""); 9898 XSetLocaleModifiers ("");
9899 9899
9900 /* If D-Bus is not already configured, inhibit D-Bus autolaunch,
9901 as autolaunch can mess up Emacs's SIGCHLD handler.
9902 FIXME: Rewrite subprocess handlers to use glib's child watchers.
9903 See Bug#14474. */
9904 if (! egetenv ("DBUS_SESSION_BUS_ADDRESS"))
9905 xputenv ("DBUS_SESSION_BUS_ADDRESS=unix:path=/dev/null");
9906
9907 /* Emacs can only handle core input events, so make sure 9900 /* Emacs can only handle core input events, so make sure
9908 Gtk doesn't use Xinput or Xinput2 extensions. */ 9901 Gtk doesn't use Xinput or Xinput2 extensions. */
9909 xputenv ("GDK_CORE_DEVICE_EVENTS=1"); 9902 xputenv ("GDK_CORE_DEVICE_EVENTS=1");