From 76e51a6343000165747b39228c0070bbbfa346ba Mon Sep 17 00:00:00 2001 From: Arvind Umrao Date: Tue, 8 May 2012 11:58:06 +0530 Subject: [PATCH] 7162172 --- Xtranssock.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) --- xtrans-1.6.0/Xtranssock.c.orig +++ xtrans-1.6.0/Xtranssock.c @@ -1653,7 +1653,7 @@ * only affect one of a set of addresses. */ - if (olderrno == ECONNREFUSED || olderrno == EINTR + if (olderrno == ECONNREFUSED #ifdef HAVE_GETADDRINFO || (((addrlist->addr->ai_next != NULL) || (addrlist->addr != addrlist->firstaddr)) && @@ -1666,7 +1666,7 @@ #endif ) res = TRANS_TRY_CONNECT_AGAIN; - else if (olderrno == EWOULDBLOCK || olderrno == EINPROGRESS) + else if (olderrno == EWOULDBLOCK || olderrno == EINPROGRESS || olderrno == EINTR) res = TRANS_IN_PROGRESS; else { @@ -1941,7 +1941,7 @@ if (olderrno == EWOULDBLOCK || olderrno == EINPROGRESS) return TRANS_IN_PROGRESS; else if (olderrno == EINTR) - return TRANS_TRY_CONNECT_AGAIN; + return TRANS_IN_PROGRESS; else { prmsg (2,"SocketUNIXConnect: Can't connect: errno = %d\n", EGET());