* cygthread.cc (cygthread::operator new): Just use getenv() to look for

CYGWIN_FREERANGE_NOCHECK since the Windows environment may be truncated by
being previously execed.
This commit is contained in:
Christopher Faylor 2005-09-21 19:29:50 +00:00
parent 574c2ba2a3
commit faf4210542
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-09-21 Christopher Faylor <cgf@timesys.com>
* cygthread.cc (cygthread::operator new): Just use getenv() to look for
CYGWIN_FREERANGE_NOCHECK since the Windows environment may be truncated
by being previously execed.
2005-09-20 Christopher Faylor <cgf@timesys.com>
* spawn.cc (av::fixup): Just blindly run any file if it has a .bat or

View File

@ -153,11 +153,10 @@ new (size_t)
}
#ifdef DEBUGGING
char buf[1024];
if (!GetEnvironmentVariable ("CYGWIN_FREERANGE_NOCHECK", buf, sizeof (buf)))
api_fatal ("Overflowed cygwin thread pool");
if (!getenv ("CYGWIN_FREERANGE_NOCHECK"))
api_fatal ("overflowed cygwin thread pool");
else
thread_printf ("Overflowed cygwin thread pool");
thread_printf ("overflowed cygwin thread pool");
#endif
info = freerange (); /* exhausted thread pool */