(__dll_crt0): Only initialize _main_tls if it changes.
* fhandler_console.cc (fhandler_console::write): Fix debugging output.
+2010-10-02 Christopher Faylor <me+cygwin@cgf.cx>
+
+ * dcrt0.cc (dll_crt0_0): Move _main_tls initialization here.
+ (__dll_crt0): Only initialize _main_tls if it changes.
+ * fhandler_console.cc (fhandler_console::write): Fix debugging output.
+
2010-09-02 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_base::fstat_by_nfs_ea): Simplify.
disable_dep ();
#endif
+ _main_tls = &_my_tls;
+
/* Initialize signal processing here, early, in the hopes that the creation
of a thread early in the process will cause more predictability in memory
layout for the main thread. */
{
main_environ = user_data->envptr;
if (in_forkee)
- fork_info->alloc_stack ();
+ {
+ fork_info->alloc_stack ();
+ _main_tls = &_my_tls;
+ }
- _main_tls = &_my_tls;
_main_tls->call ((DWORD (*) (void *, void *)) dll_crt0_1, NULL);
}
}
}
- syscall_printf ("%d = fhandler_console::write (\".20s\")", len, vsrc);
+ syscall_printf ("%d = fhandler_console::write (...)", len);
return len;
}