* 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.
This commit is contained in:
Christopher Faylor 2003-10-08 21:40:33 +00:00
parent e9ea9dec2c
commit ea4980efe1
3 changed files with 10 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2003-10-08 Christopher Faylor <cgf@redhat.com>
* 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.
2003-10-08 Corinna Vinschen <corinna@vinschen.de>
* syscalls.cc (unlink): Don't even try DELETE_ON_CLOSE technique on

View File

@ -39,7 +39,7 @@ details. */
#define PREMAIN_LEN (sizeof (user_data->premain) / sizeof (user_data->premain[0]))
HANDLE NO_COPY hMainProc;
HANDLE NO_COPY hMainProc = (HANDLE) -1;
HANDLE NO_COPY hMainThread;
sigthread NO_COPY mainthread; // ID of the main thread

View File

@ -220,6 +220,7 @@ shared_info::initialize ()
if (!cygheap)
{
cygheap_init ();
if (myself)
cygheap->user.init ();
}