* dcrt0.cc (dll_crt0_0): Move CWD initialization from here...

(dll_crt0_1): ...to here.
This commit is contained in:
Corinna Vinschen 2008-04-22 20:56:26 +00:00
parent 949b58f6a0
commit 9749fd082f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-04-22 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (dll_crt0_0): Move CWD initialization from here...
(dll_crt0_1): ...to here.
2008-04-22 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (fmemopen): Export.

View File

@ -751,8 +751,6 @@ dll_crt0_0 ()
events_init ();
tty_list::init_session ();
cygheap->cwd.init ();
debug_printf ("finished dll_crt0_0 initialization");
}
@ -775,6 +773,8 @@ dll_crt0_1 (void *)
ProtectHandle (hMainProc);
ProtectHandle (hMainThread);
cygheap->cwd.init ();
/* Initialize pthread mainthread when not forked and it is safe to call new,
otherwise it is reinitalized in fixup_after_fork */
if (!in_forkee)