4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Cygwin: select: set_bits: fix return value

If a socket descriptor is set to ready for reading on a failed
connect, increment the return value.
This commit is contained in:
Ken Brown 2021-04-07 11:43:27 -04:00
parent ef95c03522
commit 436e47584a

View File

@ -527,7 +527,10 @@ set_bits (select_record *me, fd_set *readfds, fd_set *writefds,
/* Set readfds entry in case of a failed connect. */
if (!me->read_ready && me->read_selected
&& sock->connect_state () == connect_failed)
UNIX_FD_SET (me->fd, readfds);
{
UNIX_FD_SET (me->fd, readfds);
ready++;
}
}
ready++;
}