summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/init.cc')
-rw-r--r--winsup/cygwin/init.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/init.cc b/winsup/cygwin/init.cc
index 655d89160..59e59ccd0 100644
--- a/winsup/cygwin/init.cc
+++ b/winsup/cygwin/init.cc
@@ -160,8 +160,8 @@ dll_entry (HANDLE h, DWORD reason, void *static_load)
&& is_wow64_proc)
respawn_wow64_process ();
- prime_threads ();
dll_crt0_0 ();
+ prime_threads (); // this should be the last thing to happen
break;
case DLL_PROCESS_DETACH:
break;