Commit bc6ffabe authored by Paul Eggert's avatar Paul Eggert

emacsclient: fix typo on recent socket-leak change

This ports to POSIXish platforms like macOS that lack SOCK_CLOEXEC.
Fix suggested by Eli Zaretskii in:
* lib-src/emacsclient.c (set_local_socket):
Don’t use SOCK_CLOEXEC; that’s cloexec_socket’s job.
parent 2ff9dca1
Pipeline #196 failed with stage
in 22 minutes and 10 seconds
......@@ -1423,7 +1423,7 @@ set_local_socket (char const *server_name)
if (sock_status == 0)
HSOCKET s = cloexec_socket (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC, 0);
HSOCKET s = cloexec_socket (AF_UNIX, SOCK_STREAM, 0);
if (s < 0)
message (true, "%s: socket: %s\n", progname, strerror (errno));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment