Add an explanatory comment in sock_try_connect()

This commit is contained in:
nick
2013-02-28 12:14:07 +00:00
parent 1d9f055dc7
commit f89352aa28

View File

@@ -168,9 +168,12 @@ int sock_try_connect( int fd, struct sockaddr* to, socklen_t addrlen, int wait )
break; /* success */ break; /* success */
case EAGAIN: case EAGAIN:
case EINTR: case EINTR:
break; /* Try again */ /* Try connect() again. This only breaks out of the switch,
* not the do...while loop. since result == -1, we go again.
*/
break;
default: default:
warn( SHOW_ERRNO( "Failed to connect()") ); warn( SHOW_ERRNO( "Failed to connect()" ) );
goto out; goto out;
} }
} }