Fix bug re noninteractive multithreaded memory allocation.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2013 21:06:12 +0000 (14:06 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 1 Jul 2013 21:06:12 +0000 (14:06 -0700)
commit8f43ce497c3fcd76d0d3be2d8a0506c53c757fb3
tree196afeabe60fd7b5e2b1ec27e8d8f793c32edc11
parent24827db9c4dd4597715958a3f6178cd2173251e1
Fix bug re noninteractive multithreaded memory allocation.

* emacs.c (malloc_enable_thread): Hoist extern decl to top level.
(main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Invoke malloc_enable_thread even when not interactive.
Problem reported by Ken Brown in <http://bugs.gnu.org/14569#275>.
* process.c (init_process_emacs) [CYGWIN]: Tickle glib even
in this case, since the underlying bug has now been fixed.
src/ChangeLog
src/emacs.c
src/process.c