emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Crash at startup in Cygwin w32 build on emacs-25 branch


From: Andy Moreton
Subject: Crash at startup in Cygwin w32 build on emacs-25 branch
Date: Fri, 27 Nov 2015 00:13:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (windows-nt)

The changes in commit d696d62fea48 cause an instant crash at startup for
the cygwin w32 build, as the main Windows thread ID is not initialized.
The following patch fixes it.

diff --git a/src/emacs.c b/src/emacs.c
index c411da6a5da8..48ff20a11ce4 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -760,11 +760,11 @@ main (int argc, char **argv)
      to have non-stub implementations of APIs we need to convert file
      names between UTF-8 and the system's ANSI codepage.  */
   maybe_load_unicows_dll ();
+#endif
   /* This has to be done before module_init is called below, so that
      the latter could use the thread ID of the main thread.  */
   w32_init_main_thread ();
 #endif
-#endif

 #ifdef RUN_TIME_REMAP
   if (initialized)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]