select.cc exitsock error cleanup
Christopher Faylor
cgf-no-personal-reply-please@cygwin.com
Wed May 24 00:55:00 GMT 2006
On Tue, May 23, 2006 at 08:04:31PM -0400, Lev Bishop wrote:
>2006-05-23 Lev Bishop <lev.bishop+cygwin@gmail.com>
>
> * select.cc (start_thread_socket): Clean up exitsock in case of
> error.
>Index: select.cc
>===================================================================
>RCS file: /cvs/src/src/winsup/cygwin/select.cc,v
>retrieving revision 1.124
>diff -u -p -r1.124 select.cc
>--- select.cc 21 May 2006 17:27:14 -0000 1.124
>+++ select.cc 23 May 2006 23:32:47 -0000
>@@ -1446,6 +1446,7 @@ start_thread_socket (select_record *me,
> err:
> set_winsock_errno ();
> closesocket (si->exitsock);
>+ _my_tls.locals.exitsock = INVALID_SOCKET;
> return -1;
> }
I've checked in a variation of this patch but I've used si->exitsock
for consistency.
Thanks.
cgf
More information about the Cygwin-patches
mailing list