* select.cc (socket_cleanup): Shutdown I/O on dummy sockets prior to closing

them.
This commit is contained in:
Christopher Faylor 2000-06-20 00:47:52 +00:00
parent e219a2bdf0
commit a7874ee305
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jun 19 20:46:33 2000 Christopher Faylor <cgf@cygnus.com>
* select.cc (socket_cleanup): Shutdown I/O on dummy sockets prior to
closing them.
Mon Jun 19 19:35:00 2000 Corinna Vinschen <corinna@vinschen.de> Mon Jun 19 19:35:00 2000 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc: Add load statements for `GetSidIdentifierAuthority' * dcrt0.cc: Add load statements for `GetSidIdentifierAuthority'

View File

@ -1273,10 +1273,12 @@ socket_cleanup (select_record *, select_stuff *stuff)
select_printf ("connect failed"); select_printf ("connect failed");
/* FIXME: now what? */ /* FIXME: now what? */
} }
shutdown (s, 2);
closesocket (s); closesocket (s);
/* Wait for thread to go away */ /* Wait for thread to go away */
WaitForSingleObject (si->thread, INFINITE); WaitForSingleObject (si->thread, INFINITE);
shutdown (si->exitsock, 2);
closesocket (si->exitsock); closesocket (si->exitsock);
CloseHandle (si->thread); CloseHandle (si->thread);
stuff->device_specific[FHDEVN(FH_SOCKET)] = NULL; stuff->device_specific[FHDEVN(FH_SOCKET)] = NULL;