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.
This commit is contained in:
parent
2ff9dca17c
commit
bc6ffabe80
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Reference in a new issue