mirror of
https://github.com/SwallowOS/xorg_lib_libxtrans
synced 2025-12-28 04:21:04 +08:00
Connection failure for abstract socket is ECONNREFUSED, not ENOENT.
Apropos of bug #15884.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user