* cygtls.cc (_cygtls::remove): Always close sockevt handle.
This commit is contained in:
parent
ab4c946e4c
commit
1d8170bdfa
|
@ -1,3 +1,7 @@
|
||||||
|
2011-04-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* cygtls.cc (_cygtls::remove): Always close sockevt handle.
|
||||||
|
|
||||||
2011-04-18 Corinna Vinschen <corinna@vinschen.de>
|
2011-04-18 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygwin.din (ppoll): Export.
|
* cygwin.din (ppoll): Export.
|
||||||
|
|
|
@ -146,13 +146,14 @@ _cygtls::remove (DWORD wait)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
debug_printf ("wait %p", wait);
|
debug_printf ("wait %p", wait);
|
||||||
|
if (locals.select.sockevt)
|
||||||
|
CloseHandle (locals.select.sockevt);
|
||||||
if (wait)
|
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.select.sockevt)
|
if (locals.select.sockevt)
|
||||||
{
|
{
|
||||||
CloseHandle (locals.select.sockevt);
|
|
||||||
locals.select.sockevt = NULL;
|
locals.select.sockevt = NULL;
|
||||||
free_local (select.ser_num);
|
free_local (select.ser_num);
|
||||||
free_local (select.w4);
|
free_local (select.w4);
|
||||||
|
|
Loading…
Reference in New Issue