summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2018-12-03 08:06:46 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2018-12-03 08:08:05 -0800
commitbc6ffabe803f63e99cfbeab79aa0dbdf77f756cb (patch)
tree45a265a7b06dd2a04fca788fb64f53714ca76341
parent2ff9dca17c5ba1658f8083e20f3bcc7e90c57bb2 (diff)
downloademacs-bc6ffabe803f63e99cfbeab79aa0dbdf77f756cb.tar.gz
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: https://lists.gnu.org/r/emacs-devel/2018-12/msg00055.html * lib-src/emacsclient.c (set_local_socket): Don’t use SOCK_CLOEXEC; that’s cloexec_socket’s job.
-rw-r--r--lib-src/emacsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index c430217470f..7de36651143 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -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));