diff options
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <corinna@vinschen.de> + + * cygtls.cc (_cygtls::remove): Fix typo. + 2009-07-06 Christopher Faylor <me+cygwin@cgf.cx> * 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); |