summaryrefslogtreecommitdiff
path: root/Xtranssock.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-05-12 17:49:41 -0400
committerAdam Jackson <ajax@redhat.com>2008-05-12 17:49:41 -0400
commit02fcb08803dca5bb2df4f8be490a845659bd7ed3 (patch)
tree0edc483ae2c3c1c0532e35c40720113040bcc6bc /Xtranssock.c
parent906294025573d07c739894fa3b2eedc82813a379 (diff)
downloadxorg-lib-libxtrans-02fcb08803dca5bb2df4f8be490a845659bd7ed3.tar.gz
Connection failure for abstract socket is ECONNREFUSED, not ENOENT.
Apropos of bug #15884.
Diffstat (limited to 'Xtranssock.c')
-rw-r--r--Xtranssock.c2
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);