* dcrt0.cc (dll_crt0_1): Initialize wincap and check for sanity before running
global ctors. * wincap.h (wincap): Eliminate constructor. Default is to zero memory, anyway. * wincap.cc (wincap): Copy this on fork to avoid initialization in forked processes.
This commit is contained in:
@@ -555,12 +555,12 @@ dll_crt0_1 ()
|
||||
/* Initialize SIGSEGV handling, etc. */
|
||||
init_exceptions (&cygwin_except_entry);
|
||||
|
||||
do_global_ctors (&__CTOR_LIST__, 1);
|
||||
|
||||
/* Set the os_being_run global. */
|
||||
wincap.init ();
|
||||
check_sanity_and_sync (user_data);
|
||||
|
||||
do_global_ctors (&__CTOR_LIST__, 1);
|
||||
|
||||
/* Nasty static stuff needed by newlib -- point to a local copy of
|
||||
the reent stuff.
|
||||
Note: this MUST be done here (before the forkee code) as the
|
||||
|
Reference in New Issue
Block a user