diff options
author | Christopher Faylor <me@cgf.cx> | 2005-05-11 03:33:38 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-05-11 03:33:38 +0000 |
commit | 8ad65ff04946683158a4c355479dfe9cd15ca3ba (patch) | |
tree | 316a98bc47dbde2a3d1c47697ece4036d74e620d /winsup | |
parent | 13505ca8fce1c22a7f124314a07b4ecbb62bee22 (diff) | |
download | cygnal-8ad65ff04946683158a4c355479dfe9cd15ca3ba.tar.gz cygnal-8ad65ff04946683158a4c355479dfe9cd15ca3ba.tar.bz2 cygnal-8ad65ff04946683158a4c355479dfe9cd15ca3ba.zip |
* 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')
-rw-r--r-- | winsup/cygwin/ChangeLog | 6 | ||||
-rw-r--r-- | winsup/cygwin/cygtls.cc | 9 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 3 |
3 files changed, 14 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1c2faa025..377747ee5 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2005-05-10 Christopher Faylor <cgf@timesys.com> + + * 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. + 2005-05-10 Corinna Vinschen <corinna@vinschen.de> * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. 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); diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index a5fa99ede..a03cca5ec 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -1430,7 +1430,8 @@ fhandler_console::write_normal (const unsigned char *src, while (found < end) { - if (base_chars[*found] != NOR) + char ch = base_chars[*found]; + if (ch != NOR) break; found++; } |