diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/cygtls.cc | 5 |
2 files changed, 7 insertions, 3 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index df8ccc432..0ffe94bda 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2011-01-11 Corinna Vinschen <corinna@vinschen.de> + + * cygtls.cc (_cygtls::init_thread): Call _REENT_INIT_PTR. Drop setting + current locale and calling srand48. + 2011-01-02 Christopher Faylor <me+cygwin@cgf.cx> * ChangeLog-2010: Create from ChangeLog. diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index 730c14182..d61ea4dc7 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -1,6 +1,6 @@ /* cygtls.cc - Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Red Hat, Inc. + Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Red Hat, Inc. This software is a copyrighted work licensed under the terms of the Cygwin license. Please consult the file "CYGWIN_LICENSE" for @@ -81,6 +81,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *)) if (x) { memset (this, 0, sizeof (*this)); + _REENT_INIT_PTR (&local_clib); stackptr = stack; if (_GLOBAL_REENT) { @@ -92,9 +93,7 @@ _cygtls::init_thread (void *x, DWORD (*func) (void *, void *)) local_clib.__sglue._niobs = 3; local_clib.__sglue._iobs = &_GLOBAL_REENT->__sf[0]; } - local_clib._current_locale = "C"; locals.process_logmask = LOG_UPTO (LOG_DEBUG); - srand48 ((long int) &x); } thread_id = GetCurrentThreadId (); |