diff options
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/emacs.c b/src/emacs.c index 13f6d117ebc..c5b32c7c0e7 100644 --- a/src/emacs.c +++ b/src/emacs.c | |||
| @@ -1257,6 +1257,13 @@ Using an Emacs configured with --with-x-toolkit=lucid does not have this problem | |||
| 1257 | tzset (); | 1257 | tzset (); |
| 1258 | #endif /* MSDOS */ | 1258 | #endif /* MSDOS */ |
| 1259 | 1259 | ||
| 1260 | /* Do this after initializing the memory allocator, since it uses | ||
| 1261 | glib and glib uses malloc. And do it before anything else that | ||
| 1262 | invokes glib, to avoid potential races among glib subthreads in | ||
| 1263 | Cygwin glib. gfilenotify invokes glib, so this can't be delayed | ||
| 1264 | further. */ | ||
| 1265 | catch_child_signal (); | ||
| 1266 | |||
| 1260 | #ifdef HAVE_GFILENOTIFY | 1267 | #ifdef HAVE_GFILENOTIFY |
| 1261 | globals_of_gfilenotify (); | 1268 | globals_of_gfilenotify (); |
| 1262 | #endif | 1269 | #endif |