Return to sshconnect.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.161, 2005/03/02 01:00:06 | version 1.162, 2005/03/10 22:01:06 | ||
---|---|---|---|
|
|
||
tv.tv_sec = timeout; | tv.tv_sec = timeout; | ||
tv.tv_usec = 0; | tv.tv_usec = 0; | ||
for(;;) { | for (;;) { | ||
rc = select(sockfd + 1, NULL, fdset, NULL, &tv); | rc = select(sockfd + 1, NULL, fdset, NULL, &tv); | ||
if (rc != -1 || errno != EINTR) | if (rc != -1 || errno != EINTR) | ||
break; | break; | ||
} | } | ||
switch(rc) { | switch (rc) { | ||
case 0: | case 0: | ||
/* Timed out */ | /* Timed out */ | ||
errno = ETIMEDOUT; | errno = ETIMEDOUT; |