* fork.cc (fork_child): After a pthread/fork, ensure that impure pointer stuff

which resides in parent is propagated to child thread.
This commit is contained in:
Christopher Faylor 2003-12-23 22:24:38 +00:00
parent 281e419402
commit 05b2a10ba4
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-12-23 Christopher Faylor <cgf@redhat.com>
* fork.cc (fork_child): After a pthread/fork, ensure that impure
pointer stuff which resides in parent is propagated to child thread.
2003-12-23 Christopher Faylor <cgf@redhat.com>
* exceptions.cc (set_signal_mask): Redefine to not pass by address.

View File

@ -264,7 +264,8 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
{
_main_tls = &_my_tls;
_main_tls->init_thread (NULL);
// memcpy (&_main_tls->local_clib, _impure_ptr, sizeof (*_main_tls->local_lib));
_main_tls->local_clib = *_impure_ptr;
_impure_ptr = &_main_tls->local_clib;
}
set_file_api_mode (current_codepage);