diff options
author | Christopher Faylor <me@cgf.cx> | 2002-06-10 17:08:09 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-06-10 17:08:09 +0000 |
commit | fe4283af7ad3e47321d9a7b725c343629dc7d90f (patch) | |
tree | c3a72003d0f6575c487c99b0af56048e51683656 /winsup/cygwin/dcrt0.cc | |
parent | 3d78e129b748bf686e606a64c0f44ece110f4c48 (diff) | |
download | cygnal-fe4283af7ad3e47321d9a7b725c343629dc7d90f.tar.gz cygnal-fe4283af7ad3e47321d9a7b725c343629dc7d90f.tar.bz2 cygnal-fe4283af7ad3e47321d9a7b725c343629dc7d90f.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index bd164e03e..6a358992d 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -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 |