mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-03-03 05:25:24 +08:00
* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being called
in a "non-standard" way.
This commit is contained in:
parent
4385bf1240
commit
42aa06a575
@ -1,3 +1,8 @@
|
|||||||
|
2005-04-05 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* cygtls.cc (_cygtls::remove): Don't free or close stuff if we're being
|
||||||
|
called in a "non-standard" way.
|
||||||
|
|
||||||
2005-04-05 Christopher Faylor <cgf@timesys.com>
|
2005-04-05 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* sync.h (muto::initforce): Delete flawed implementation.
|
* sync.h (muto::initforce): Delete flawed implementation.
|
||||||
|
@ -165,6 +165,8 @@ _cygtls::remove (DWORD wait)
|
|||||||
debug_printf ("wait %p", wait);
|
debug_printf ("wait %p", wait);
|
||||||
if (!locals.exitsock)
|
if (!locals.exitsock)
|
||||||
return;
|
return;
|
||||||
|
if (wait)
|
||||||
|
{
|
||||||
// FIXME: Need some sort of atthreadexit function to allow things like
|
// FIXME: Need some sort of atthreadexit function to allow things like
|
||||||
// select to control this themselves
|
// select to control this themselves
|
||||||
if (locals.exitsock != INVALID_SOCKET)
|
if (locals.exitsock != INVALID_SOCKET)
|
||||||
@ -174,6 +176,7 @@ _cygtls::remove (DWORD wait)
|
|||||||
free_local (protoent_buf);
|
free_local (protoent_buf);
|
||||||
free_local (servent_buf);
|
free_local (servent_buf);
|
||||||
free_local (hostent_buf);
|
free_local (hostent_buf);
|
||||||
|
}
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user