diff options
author | Adam Jackson <ajax@redhat.com> | 2008-05-12 17:49:41 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-05-12 17:49:41 -0400 |
commit | 02fcb08803dca5bb2df4f8be490a845659bd7ed3 (patch) | |
tree | 0edc483ae2c3c1c0532e35c40720113040bcc6bc | |
parent | 906294025573d07c739894fa3b2eedc82813a379 (diff) |
Connection failure for abstract socket is ECONNREFUSED, not ENOENT.
Apropos of bug #15884.
-rw-r--r-- | Xtranssock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |