dynamically loaded.
(shared_info::initialize): Don't initialize user stuff if myself doesn't exit.
+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
#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
if (!cygheap)
{
cygheap_init ();
- cygheap->user.init ();
+ if (myself)
+ cygheap->user.init ();
}
heap_init ();