summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/shared.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-10-08 21:40:33 +0000
committerChristopher Faylor <me@cgf.cx>2003-10-08 21:40:33 +0000
commitea4980efe151615da1d289b385feee0b267dbaa0 (patch)
treea5728a52e98cd241cf39d5d43e30560af5cd96ae /winsup/cygwin/shared.cc
parente9ea9dec2ce47789a3080d828ee7c9d02034ce71 (diff)
downloadcygnal-ea4980efe151615da1d289b385feee0b267dbaa0.tar.gz
cygnal-ea4980efe151615da1d289b385feee0b267dbaa0.tar.bz2
cygnal-ea4980efe151615da1d289b385feee0b267dbaa0.zip
* dcrt0.cc (hMainProc): Initialize to useful value for use when dll is
dynamically loaded. (shared_info::initialize): Don't initialize user stuff if myself doesn't exit.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index 911465aea..b3da33b66 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -220,7 +220,8 @@ shared_info::initialize ()
if (!cygheap)
{
cygheap_init ();
- cygheap->user.init ();
+ if (myself)
+ cygheap->user.init ();
}
heap_init ();