summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/dcrt0.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-04-22 20:56:26 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-04-22 20:56:26 +0000
commit9749fd082fb5f6dfc0cbcb638425cfd169bdd54c (patch)
tree5cdb296b7b7ba1dfa9c6e3aed9206b7765c7f931 /winsup/cygwin/dcrt0.cc
parent949b58f6a00c954f1742eac333c49ee35ac1be06 (diff)
downloadcygnal-9749fd082fb5f6dfc0cbcb638425cfd169bdd54c.tar.gz
cygnal-9749fd082fb5f6dfc0cbcb638425cfd169bdd54c.tar.bz2
cygnal-9749fd082fb5f6dfc0cbcb638425cfd169bdd54c.zip
* dcrt0.cc (dll_crt0_0): Move CWD initialization from here...
(dll_crt0_1): ...to here.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r--winsup/cygwin/dcrt0.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 468d0ab39..7b299d3dd 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -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)