diff options
author | Ken Brown <kbrown@cornell.edu> | 2021-04-10 09:12:26 -0400 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2021-04-14 10:19:13 -0400 |
commit | 3c00e4c76209b32f2ea345415222a2430ec23306 (patch) | |
tree | 8b9f25abb393b2bfbb04ac2c909464a1b72e22b8 | |
parent | 0338af0a0dc085ef7740d01c9adee1d2e6f5212c (diff) | |
download | newlib-3c00e4c76209b32f2ea345415222a2430ec23306.zip newlib-3c00e4c76209b32f2ea345415222a2430ec23306.tar.gz newlib-3c00e4c76209b32f2ea345415222a2430ec23306.tar.bz2 |
Revert "Cygwin: set_bits: extend socket code to all sockets"
This partially reverts commit 84f97738a7. AF_UNIX sockets don't need
this special handling of a failed connect because they can accomplish
the same thing with fhandler_socket_unix::so_error().
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 5f57e23..efd72cf 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -512,7 +512,7 @@ set_bits (select_record *me, fd_set *readfds, fd_set *writefds, fd_set *exceptfds) { int ready = 0; - fhandler_socket *sock; + fhandler_socket_wsock *sock; select_printf ("me %p, testing fd %d (%s)", me, me->fd, me->fh->get_name ()); if (me->read_selected && me->read_ready) { @@ -522,7 +522,7 @@ set_bits (select_record *me, fd_set *readfds, fd_set *writefds, if (me->write_selected && me->write_ready) { UNIX_FD_SET (me->fd, writefds); - if (me->except_on_write && (sock = me->fh->is_socket ())) + if (me->except_on_write && (sock = me->fh->is_wsock_socket ())) { /* Set readfds entry in case of a failed connect. */ if (!me->read_ready && me->read_selected |