From 6499c6e07b217eb22274c090f7a9f3d0d3de2be4 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 7 Jul 2009 08:07:38 +0000 Subject: [PATCH] * cygtls.cc (_cygtls::remove): Fix typo. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/cygtls.cc | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9d62ae50f..821196361 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2009-07-07 Corinna Vinschen + + * cygtls.cc (_cygtls::remove): Fix typo. + 2009-07-06 Christopher Faylor * Makefile.in (clean): Clean generated files in srcdir. diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index c154465e4..1b1ca114b 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -148,10 +148,9 @@ _cygtls::remove (DWORD wait) { /* FIXME: Need some sort of atthreadexit function to allow things like select to control this themselves. */ - if (!locals.select.sockevt) + if (locals.select.sockevt) { - if (locals.select.sockevt) - CloseHandle (locals.select.sockevt); + CloseHandle (locals.select.sockevt); locals.select.sockevt = NULL; free_local (select.ser_num); free_local (select.w4);