diff options
author | Christopher Faylor <me@cgf.cx> | 2000-06-20 00:47:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-06-20 00:47:52 +0000 |
commit | a7874ee305e4691af6280789b166565441b92be7 (patch) | |
tree | f68669ee793d34b8c0db3c460eb143d2d54d34dd | |
parent | e219a2bdf05f480fff06c6f4866a79bab784450d (diff) | |
download | newlib-a7874ee305e4691af6280789b166565441b92be7.zip newlib-a7874ee305e4691af6280789b166565441b92be7.tar.gz newlib-a7874ee305e4691af6280789b166565441b92be7.tar.bz2 |
* select.cc (socket_cleanup): Shutdown I/O on dummy sockets prior to closing
them.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/select.cc | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 601ac25..387eca3 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -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> * dcrt0.cc: Add load statements for `GetSidIdentifierAuthority' diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 08fba12..d3c607a 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -1273,10 +1273,12 @@ socket_cleanup (select_record *, select_stuff *stuff) select_printf ("connect failed"); /* FIXME: now what? */ } + shutdown (s, 2); closesocket (s); /* Wait for thread to go away */ WaitForSingleObject (si->thread, INFINITE); + shutdown (si->exitsock, 2); closesocket (si->exitsock); CloseHandle (si->thread); stuff->device_specific[FHDEVN(FH_SOCKET)] = NULL; |