* 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:
		
							parent
							
								
									281e419402
								
							
						
					
					
						commit
						05b2a10ba4
					
				| 
						 | 
					@ -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>
 | 
					2003-12-23  Christopher Faylor  <cgf@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* exceptions.cc (set_signal_mask): Redefine to not pass by address.
 | 
						* exceptions.cc (set_signal_mask): Redefine to not pass by address.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -264,7 +264,8 @@ fork_child (HANDLE& hParent, dll *&first_dll, bool& load_dlls)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
      _main_tls = &_my_tls;
 | 
					      _main_tls = &_my_tls;
 | 
				
			||||||
      _main_tls->init_thread (NULL);
 | 
					      _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);
 | 
					  set_file_api_mode (current_codepage);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue