diff options
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index f43d3b6d5..b4f7bdf5e 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -635,6 +635,10 @@ dll_crt0_1 () if (!user_data->forkee) pthread::init_mainthread (); +#ifdef DEBUGGING + strace.microseconds (); +#endif + /* Initialize debug muto, if DLL is built with --enable-debugging. Need to do this before any helper threads start. */ debug_init (); @@ -849,9 +853,6 @@ _dll_crt0 () initial_env (); char zeros[sizeof (fork_info->zero)] = {0}; static NO_COPY STARTUPINFO si; -#ifdef DEBUGGING - strace.microseconds (); -#endif main_environ = user_data->envptr; *main_environ = NULL; |