* dcrt0.cc (dll_crt0_1): Initialize cygwin threads here only when not forking.

* fork.cc (fork_child): Initialize cygwin thread later in process to avoid
allocating memory for thread stacks.
* shared.cc (open_shared): Issue warning if NT and shared segment is relocated.
This commit is contained in:
Christopher Faylor
2002-10-19 00:57:06 +00:00
parent 824166e620
commit a85860b5c8
4 changed files with 22 additions and 4 deletions

View File

@ -104,6 +104,10 @@ open_shared (const char *name, int n, HANDLE &shared_h, DWORD size, shared_locat
if (!shared)
{
#ifdef DEBUGGING
if (wincap.is_winnt ())
system_printf ("relocating shared object %s(%d) on Windows NT", name, n);
#endif
/* Probably win95, so try without specifying the address. */
shared = (shared_info *) MapViewOfFileEx (shared_h,
FILE_MAP_READ|FILE_MAP_WRITE,