* dcrt0.cc (dll_crt0_0): Don't initialize signals early when dynamically
loaded. (dll_crt0_1): Wait until this phase to initialize signals when dynamically loaded.
This commit is contained in:
parent
665ca5231d
commit
585697536f
|
@ -1,3 +1,10 @@
|
||||||
|
2008-10-05 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
|
* dcrt0.cc (dll_crt0_0): Don't initialize signals early when
|
||||||
|
dynamically loaded.
|
||||||
|
(dll_crt0_1): Wait until this phase to initialize signals when
|
||||||
|
dynamically loaded.
|
||||||
|
|
||||||
2008-09-29 Christopher Faylor <me+cygwin@cgf.cx>
|
2008-09-29 Christopher Faylor <me+cygwin@cgf.cx>
|
||||||
|
|
||||||
* thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING
|
* thread.cc (pthread_mutex::_fixup_after_fork): Reinstate DEBUGGING
|
||||||
|
|
|
@ -697,7 +697,8 @@ dll_crt0_0 ()
|
||||||
/* Initialize signal processing here, early, in the hopes that the creation
|
/* Initialize signal processing here, early, in the hopes that the creation
|
||||||
of a thread early in the process will cause more predictability in memory
|
of a thread early in the process will cause more predictability in memory
|
||||||
layout for the main thread. */
|
layout for the main thread. */
|
||||||
sigproc_init ();
|
if (!dynamically_loaded)
|
||||||
|
sigproc_init ();
|
||||||
|
|
||||||
lock_process::init ();
|
lock_process::init ();
|
||||||
_impure_ptr = _GLOBAL_REENT;
|
_impure_ptr = _GLOBAL_REENT;
|
||||||
|
@ -759,6 +760,8 @@ dll_crt0_0 ()
|
||||||
void
|
void
|
||||||
dll_crt0_1 (void *)
|
dll_crt0_1 (void *)
|
||||||
{
|
{
|
||||||
|
if (dynamically_loaded)
|
||||||
|
sigproc_init ();
|
||||||
check_sanity_and_sync (user_data);
|
check_sanity_and_sync (user_data);
|
||||||
|
|
||||||
/* Initialize malloc and then call user_shared_initialize since it relies
|
/* Initialize malloc and then call user_shared_initialize since it relies
|
||||||
|
|
Loading…
Reference in New Issue