Connection failure for abstract socket is ECONNREFUSED, not ENOENT.

Apropos of bug #15884.
This commit is contained in:
Adam Jackson
2008-05-12 17:49:41 -04:00
parent 9062940255
commit 02fcb08803

View File

@@ -2161,7 +2161,7 @@ TRANS(SocketUNIXConnect) (XtransConnInfo ciptr, char *host, char *port)
return TRANS_IN_PROGRESS;
else if (olderrno == EINTR)
return TRANS_TRY_CONNECT_AGAIN;
else if (olderrno == ENOENT) {
else if (olderrno == ENOENT || olderrno == ECONNREFUSED) {
/* If opening as abstract socket failed, try again normally */
if (abstract) {
ciptr->transptr->flags &= ~(TRANS_ABSTRACT);