Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-05-11 07:33:38 +0400
committerChristopher Faylor <me@cgf.cx>2005-05-11 07:33:38 +0400
commit8ad65ff04946683158a4c355479dfe9cd15ca3ba (patch)
tree316a98bc47dbde2a3d1c47697ece4036d74e620d /winsup/cygwin/cygtls.cc
parent13505ca8fce1c22a7f124314a07b4ecbb62bee22 (diff)
* cygtls.cc (_cygtls::remove): Clear exitsock after close.
* fhandler_console.cc (fhandler_console::write_normal): Store character in a local variable for potential future inspection.
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r--winsup/cygwin/cygtls.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc
index 7b8c560ce..4e09ae923 100644
--- a/winsup/cygwin/cygtls.cc
+++ b/winsup/cygwin/cygtls.cc
@@ -167,10 +167,13 @@ _cygtls::remove (DWORD wait)
return;
if (wait)
{
- // FIXME: Need some sort of atthreadexit function to allow things like
- // select to control this themselves
+ /* FIXME: Need some sort of atthreadexit function to allow things like
+ select to control this themselves. */
if (locals.exitsock != INVALID_SOCKET)
- closesocket (locals.exitsock);
+ {
+ closesocket (locals.exitsock);
+ locals.exitsock = NULL;
+ }
free_local (process_ident);
free_local (ntoa_buf);
free_local (protoent_buf);