* dcrt0.cc (do_exit): Call DisableThreadLibraryCalls since we don't need to

track thread detaches.
* init.cc (dll_entry): Reorganize slightly.  Fix api_fatal message.
This commit is contained in:
Christopher Faylor
2002-10-07 04:12:54 +00:00
parent 66451d9590
commit bc63ea872c
3 changed files with 14 additions and 12 deletions

View File

@@ -958,6 +958,10 @@ do_exit (int status)
UINT n = (UINT) status;
static int NO_COPY exit_state = 0;
if (!DisableThreadLibraryCalls (cygwin_hmodule))
system_printf ("DisableThreadLibraryCalls (%p) failed, %E",
cygwin_hmodule);
syscall_printf ("do_exit (%d)", n);
vfork_save *vf = vfork_storage.val ();