version 1.10, 1999/09/30 17:08:52 |
version 1.11, 1999/10/03 19:22:39 |
|
|
restore_uid(); |
restore_uid(); |
|
|
/* Destroy the failed socket. */ |
/* Destroy the failed socket. */ |
shutdown(sock, 2); |
shutdown(sock, SHUT_RDWR); |
close(sock); |
close(sock); |
} |
} |
else |
else |
|
|
/* Close the failed socket; there appear to be some problems |
/* Close the failed socket; there appear to be some problems |
when reusing a socket for which connect() has already |
when reusing a socket for which connect() has already |
returned an error. */ |
returned an error. */ |
shutdown(sock, 2); |
shutdown(sock, SHUT_RDWR); |
close(sock); |
close(sock); |
} |
} |
if (hp->h_addr_list[i]) |
if (hp->h_addr_list[i]) |