This is the mail archive of the cygwin-patches mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: select.cc exitsock error cleanup


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]