aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2013-06-11 11:34:06 -0700
committerPaul Eggert2013-06-11 11:34:06 -0700
commitf7394b12358ae453a0c8b85fc307afc1b740010d (patch)
tree44f9aee2f4bc38a27fac7494fa3fe44915c6979f /src
parentb0e228313455c1d9ee6e9cf9360aefa4a382c330 (diff)
downloademacs-f7394b12358ae453a0c8b85fc307afc1b740010d.tar.gz
emacs-f7394b12358ae453a0c8b85fc307afc1b740010d.zip
Tickle glib by waiting for Emacs itself, not for process 0.
* process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]: Wait for self, not for 0. This can't hurt on GNU or similar system, and may help with Cygwin. Fixes: debbugs:14569
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/process.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 34876d4759b..b178f1130e0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12013-06-11 Paul Eggert <eggert@cs.ucla.edu> 12013-06-11 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Tickle glib by waiting for Emacs itself, not for process 0 (Bug#14569).
4 * process.c (init_process_emacs) [HAVE_GLIB && !WINDOWSNT]:
5 Wait for self, not for 0. This can't hurt on GNU or similar
6 system, and may help with Cygwin.
7
3 * keyboard.c: Don't use PROP (...) as an lvalue. 8 * keyboard.c: Don't use PROP (...) as an lvalue.
4 (parse_tool_bar_item) [!USE_GTK && !HAVE_NS]: 9 (parse_tool_bar_item) [!USE_GTK && !HAVE_NS]:
5 Use set_prop (A, B), not PROP (A) = B. 10 Use set_prop (A, B), not PROP (A) = B.
diff --git a/src/process.c b/src/process.c
index e51b45bd64f..a873dd0cdb2 100644
--- a/src/process.c
+++ b/src/process.c
@@ -7068,9 +7068,10 @@ init_process_emacs (void)
7068#endif 7068#endif
7069 { 7069 {
7070#if defined HAVE_GLIB && !defined WINDOWSNT 7070#if defined HAVE_GLIB && !defined WINDOWSNT
7071 /* Tickle glib's child-handling code so that it initializes its 7071 /* Tickle glib's child-handling code. Ask glib to wait for Emacs itself;
7072 this should always fail, but is enough to initialize glib's
7072 private SIGCHLD handler. */ 7073 private SIGCHLD handler. */
7073 g_source_unref (g_child_watch_source_new (0)); 7074 g_source_unref (g_child_watch_source_new (getpid ()));
7074#endif 7075#endif
7075 catch_child_signal (); 7076 catch_child_signal ();
7076 } 7077 }