* 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:
parent
e9ea9dec2c
commit
ea4980efe1
|
@ -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>
|
2003-10-08 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* syscalls.cc (unlink): Don't even try DELETE_ON_CLOSE technique on
|
* syscalls.cc (unlink): Don't even try DELETE_ON_CLOSE technique on
|
||||||
|
|
|
@ -39,7 +39,7 @@ details. */
|
||||||
|
|
||||||
#define PREMAIN_LEN (sizeof (user_data->premain) / sizeof (user_data->premain[0]))
|
#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;
|
HANDLE NO_COPY hMainThread;
|
||||||
|
|
||||||
sigthread NO_COPY mainthread; // ID of the main thread
|
sigthread NO_COPY mainthread; // ID of the main thread
|
||||||
|
|
|
@ -220,6 +220,7 @@ shared_info::initialize ()
|
||||||
if (!cygheap)
|
if (!cygheap)
|
||||||
{
|
{
|
||||||
cygheap_init ();
|
cygheap_init ();
|
||||||
|
if (myself)
|
||||||
cygheap->user.init ();
|
cygheap->user.init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue