This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
Re: select.cc exitsock error cleanup
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Tue, 23 May 2006 20:55:39 -0400
- Subject: Re: select.cc exitsock error cleanup
- References: <ba40711f0605231704u29b8860ayd6d30fab02602c70@mail.gmail.com>
- Reply-to: cygwin-patches at cygwin dot com
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