Try again to fix FreeBSD bug re multithreaded memory alloc.
commit2c1c974b061b14ec69b29c436214b0350872f14c
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jul 2013 06:20:55 +0000 (3 23:20 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 4 Jul 2013 06:20:55 +0000 (3 23:20 -0700)
tree7b21efad2e4b150316f7b34552579a2a4490a06d
parent8b09455e9cc38c741183469b3381b67254472fe5
Try again to fix FreeBSD bug re multithreaded memory alloc.

* emacs.c (main) [HAVE_PTHREAD && !SYSTEM_MALLOC && !DOUG_LEA_MALLOC]:
Do not clear _malloc_thread_enabled_p, undoing the previous change,
which did not work (see <http://bugs.gnu.org/14569#307>).
(main): Do not invoke malloc_enable_thread if (! CANNOT_DUMP
&& (!noninteractive || initialized)).  This attempts to thread
the needle between the Scylla of FreeBSD and the Charybdis of Cygwin.
src/ChangeLog
src/emacs.c