Commit 5daba9d8 authored by Paul Eggert's avatar Paul Eggert

emacsclient: tidy socket failure cleanup

* lib-src/emacsclient.c (set_tcp_socket, set_local_socket):
Close socket (instead of leaking it) when ‘connect’ fails.
(socket_status): Return errno if stat fails and -1 if we don’t own.
(set_local_socket): Simplify based on socket_status change.
parent 4dc73269
Pipeline #123 failed with stage
in 21 minutes and 10 seconds