aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-11-06 14:02:33 +0000
committerChristopher Faylor <me@cgf.cx>2005-11-06 14:02:33 +0000
commit2b91e0dac433ec7395ab6e44724589e1a527f96a (patch)
treec468bc490e04e8d0a28c452a0c32b1ca037c7b16 /winsup/cygwin
parent72319550c16dee661534dd3002de2101b6a08dd7 (diff)
downloadnewlib-2b91e0dac433ec7395ab6e44724589e1a527f96a.zip
newlib-2b91e0dac433ec7395ab6e44724589e1a527f96a.tar.gz
newlib-2b91e0dac433ec7395ab6e44724589e1a527f96a.tar.bz2
* dcrt0.cc (dll_crt0_0): Initialize security data first so that it can be used
by subsequent handle creation.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/dcrt0.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 94cb463..8b5f8db 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-06 Christopher Faylor <cgf@timesys.com>
+
+ * dcrt0.cc (dll_crt0_0): Initialize security data first so that it can
+ be used by subsequent handle creation.
+
2005-11-04 Christopher Faylor <cgf@timesys.com>
* cygheap.h (init_cygheap::_gtod): New hires_ms element.
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 7599986..9f75b75 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -636,6 +636,7 @@ get_cygwin_startup_info ()
void __stdcall
dll_crt0_0 ()
{
+ init_global_security ();
lock_process::init ();
init_console_handler (TRUE);
_impure_ptr = _GLOBAL_REENT;
@@ -646,7 +647,6 @@ dll_crt0_0 ()
wincap.init ();
initial_env ();
- init_global_security ();
if (!DuplicateHandle (GetCurrentProcess (), GetCurrentProcess (),
GetCurrentProcess (), &hMainProc, 0, FALSE,
DUPLICATE_SAME_ACCESS))