summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-04-05 22:38:30 +0200
committerAndreas Baumann <abaumann@yahoo.com>2009-04-05 22:38:30 +0200
commit70b342e3ecbabad22d04f3249271d108a9c35285 (patch)
tree30ab116ffac96c88274ff29e50af3ca56d23109b /tests
parentbe7c067680b31d54233c875d159db29cb38739ff (diff)
downloadwolfbones-70b342e3ecbabad22d04f3249271d108a9c35285.tar.gz
wolfbones-70b342e3ecbabad22d04f3249271d108a9c35285.tar.bz2
fixed second connect in test1
Diffstat (limited to 'tests')
-rw-r--r--tests/network/test1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/network/test1.c b/tests/network/test1.c
index 969c405..2b29445 100644
--- a/tests/network/test1.c
+++ b/tests/network/test1.c
@@ -194,6 +194,9 @@ SECOND_CONNECT_AGAIN:
if( errno == EINTR ) {
/* interrupted, no problem, the connection goes on anyway */
goto SECOND_CONNECT_AGAIN;
+ } else if( errno == EISCONN ) {
+ /* already connected, first connect succeeded */
+ goto CONNECTED;
} else {
(void)close( fd );
fprintf( stderr, "second connect failed: %s (%d)\n", strerror( errno ), errno );