1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

handle EISCONN in socketpair_tcp

this should get the auto-tests working on IRIX
(This used to be commit 87f90d48d8)
This commit is contained in:
Andrew Tridgell 2001-06-27 10:44:14 +00:00
parent a0b75f7da7
commit c6f647dfd9

View File

@ -1185,7 +1185,8 @@ static int socketpair_tcp(int fd[2])
close(listener);
if (connect_done == 0) {
if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) != 0) goto failed;
if (connect(fd[1],(struct sockaddr *)&sock,sizeof(sock)) != 0
&& errno != EISCONN) goto failed;
}
set_blocking(fd[1], 1);