diff options
| author | Paul Eggert | 2013-06-11 11:34:06 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-06-11 11:34:06 -0700 |
| commit | f7394b12358ae453a0c8b85fc307afc1b740010d (patch) | |
| tree | 44f9aee2f4bc38a27fac7494fa3fe44915c6979f /src/process.c | |
| parent | b0e228313455c1d9ee6e9cf9360aefa4a382c330 (diff) | |
| download | emacs-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/process.c')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 | } |