diff options
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 | } |