* 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.
This commit is contained in:
Christopher Faylor 2005-05-11 03:33:38 +00:00
parent 13505ca8fc
commit 8ad65ff049
3 changed files with 14 additions and 4 deletions

View File

@ -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> 2005-05-10 Corinna Vinschen <corinna@vinschen.de>
* Makefile.in (DLL_OFILES): Add fhandler_mailslot.o. * Makefile.in (DLL_OFILES): Add fhandler_mailslot.o.

View File

@ -167,10 +167,13 @@ _cygtls::remove (DWORD wait)
return; return;
if (wait) if (wait)
{ {
// FIXME: Need some sort of atthreadexit function to allow things like /* FIXME: Need some sort of atthreadexit function to allow things like
// select to control this themselves select to control this themselves. */
if (locals.exitsock != INVALID_SOCKET) if (locals.exitsock != INVALID_SOCKET)
closesocket (locals.exitsock); {
closesocket (locals.exitsock);
locals.exitsock = NULL;
}
free_local (process_ident); free_local (process_ident);
free_local (ntoa_buf); free_local (ntoa_buf);
free_local (protoent_buf); free_local (protoent_buf);

View File

@ -1430,7 +1430,8 @@ fhandler_console::write_normal (const unsigned char *src,
while (found < end) while (found < end)
{ {
if (base_chars[*found] != NOR) char ch = base_chars[*found];
if (ch != NOR)
break; break;
found++; found++;
} }