Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-09-21 06:19:31 +0400
committerChristopher Faylor <me@cgf.cx>2009-09-21 06:19:31 +0400
commitadfbdcdb07a25c408ecbab3e03349ebfcb386dfb (patch)
treeb2122ebfb8e0d8d45b5256fbb9a63d0bd695c508 /winsup/cygwin/external.cc
parent50a8741474c249fbc2928b33df2cf47dbe1367b8 (diff)
* external.cc (cygwin_internal): Add hack to always reset cxx_malloc to proper
value. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Relocate wayward comment.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 4e4102ecb..e20bebf56 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -195,6 +195,11 @@ cygwin_internal (cygwin_getinfo_types t, ...)
return 1;
case CW_USER_DATA:
+ /* This is a kludge to work around a version of _cygwin_common_crt0
+ which overwrote the cxx_malloc field with the local DLL copy.
+ Hilarity ensues if the DLL is not loaded like while the process
+ is forking. */
+ __cygwin_user_data.cxx_malloc = &default_cygwin_cxx_malloc;
return (DWORD) &__cygwin_user_data;
case CW_PERFILE: