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 /winsup/cygwin/select.cc | |
parent | e219a2bdf05f480fff06c6f4866a79bab784450d (diff) | |
download | cygnal-a7874ee305e4691af6280789b166565441b92be7.tar.gz cygnal-a7874ee305e4691af6280789b166565441b92be7.tar.bz2 cygnal-a7874ee305e4691af6280789b166565441b92be7.zip |
* select.cc (socket_cleanup): Shutdown I/O on dummy sockets prior to closing
them.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 08fba1256..d3c607a7e 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; |