mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
This commit is contained in:
parent
b28baf71a7
commit
87f90d48d8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user