From e80cbe3e52decfeb93fb121d624c2bf5cd42abf3 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 3 Jan 2004 18:15:03 +0000 Subject: * cygheap.h (init_cygheap): Play more vfork shell games and move ctty_on_hold and open_fhs_on_hold (back) here. * dcrt0.cc (_dll_crt0): Just set impure_ptr_ptr here and let later initialization deal with tls. * dtable.cc (dtable::vfork_child_fixup): Move ctty considerations here. (dtable:vfork_parent_restore): And here. * fork.cc (vfork): Reflect change to ctty handling. * perthread.h (vfork_save::fhctty): Eliminate. * cygwin.din: Make more exports NOSIGFE that will never be interrupted by a signal. * init.cc (dll_entry): Set stackptr to NULL to catch problems earlier. --- winsup/cygwin/dcrt0.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/dcrt0.cc') diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 1922cc5fb..3a3d689c7 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -916,12 +916,11 @@ _dll_crt0 () void dll_crt0 (per_process *uptr) { - char padding[CYGTLS_PADSIZE]; /* Set the local copy of the pointer into the user space. */ if (uptr && uptr != user_data) { memcpy (user_data, uptr, per_process_overwrite); - *(user_data->impure_ptr_ptr) = initialize_main_tls (padding); + *(user_data->impure_ptr_ptr) = &reent_data; } _dll_crt0 (); } -- cgit v1.2.3