From 02fcb08803dca5bb2df4f8be490a845659bd7ed3 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 12 May 2008 17:49:41 -0400 Subject: Connection failure for abstract socket is ECONNREFUSED, not ENOENT. Apropos of bug #15884. --- Xtranssock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xtranssock.c b/Xtranssock.c index 8b8e4a9..309839c 100644 --- a/Xtranssock.c +++ b/Xtranssock.c @@ -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); -- cgit v1.2.3