Bug reported to the Debian BTS 6 months ago by Robert Millan, initially against gcalctool, tracked down to xtrans by Loic Minier.
The patch below makes SocketUNIXConnect return TRANS_CONNECT_FAILED instead of TRANS_TRY_CONNECT_AGAIN when the socket descriptor does not exist (for instance because a process still references an old stale socket). See the Debian report for an example.
Created attachment 9400 [details] [review]
Patch fixing the return value in case of ENOENT
Applied to master, with slight munging to account for the new abstract socket support. Thanks!