* fork.cc (fork_child): Invert sense of test which defeated correct handling in

a fork from a non-main thread.
* dcrt0.cc (initial_env): Eliminate parameter and just send DebugBreak when
appropriate.
(dll_crt0_0): Reflect parameter change to initial_env.
(dll_crt0_1): Don't call initial_env.
This commit is contained in:
Christopher Faylor
2004-02-18 22:32:15 +00:00
parent 2d6c4a1a65
commit 0e061ecf96
3 changed files with 17 additions and 16 deletions

View File

@ -246,7 +246,7 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
/* If we've played with the stack, stacksize != 0. That means that
fork() was invoked from other than the main thread. Make sure that
the threadinfo information is properly set up. */
if (!fork_info->stacksize)
if (fork_info->stacksize)
{
_main_tls = &_my_tls;
_main_tls->init_thread (NULL, NULL);