diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-07-07 12:07:38 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-07-07 12:07:38 +0400 |
commit | 6499c6e07b217eb22274c090f7a9f3d0d3de2be4 (patch) | |
tree | 6446d8facd9a131088eeebb766ff66855ab44c1a | |
parent | 37b9360dc6f6573bff95e0f435018fb1670ca2bc (diff) |
* cygtls.cc (_cygtls::remove): Fix typo.
-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); |