git.samba.org
/
jra
/
samba
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0b75f7
)
handle EISCONN in socketpair_tcp
author
Andrew Tridgell
<tridge@samba.org>
Wed, 27 Jun 2001 10:44:14 +0000
(10:44 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Wed, 27 Jun 2001 10:44:14 +0000
(10:44 +0000)
this should get the auto-tests working on IRIX
(This used to be commit
87f90d48d857828a6ed12bdc58d0d881be45dfce
)
source3/lib/util_sock.c
patch
|
blob
|
history
diff --git
a/source3/lib/util_sock.c
b/source3/lib/util_sock.c
index 7f8b83ec7d3b8722fa6b3417ec40f14adc614e9d..d7bef0697e5cd29fecbe48d32f4f5bfa1f478158 100644
(file)
--- a/
source3/lib/util_sock.c
+++ b/
source3/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);