diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-06-27 10:44:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-06-27 10:44:14 +0000 |
commit | 87f90d48d857828a6ed12bdc58d0d881be45dfce (patch) | |
tree | 326e94c76b3825643a09f0a06cd08e8cfd79f4fa | |
parent | b28baf71a7d947cfe8bda546f4e70194da0781da (diff) | |
download | samba-87f90d48d857828a6ed12bdc58d0d881be45dfce.tar.gz samba-87f90d48d857828a6ed12bdc58d0d881be45dfce.tar.xz samba-87f90d48d857828a6ed12bdc58d0d881be45dfce.zip |
handle EISCONN in socketpair_tcp
this should get the auto-tests working on IRIX
-rw-r--r-- | source/lib/util_sock.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/lib/util_sock.c b/source/lib/util_sock.c index 7f8b83ec7d3..d7bef0697e5 100644 --- a/source/lib/util_sock.c +++ b/source/lib/util_sock.c @@ -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); |