Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emacs: Fix socket cleanup #58

Open
TLATER opened this issue May 18, 2021 · 0 comments
Open

Emacs: Fix socket cleanup #58

TLATER opened this issue May 18, 2021 · 0 comments

Comments

@TLATER
Copy link
Owner

TLATER commented May 18, 2021

Emacs unconditionally cleans up its socket when it shuts down, but systemd expects the socket to be kept alive.

Hence, we need to teach emacs not to do that.

Seems there's a variable server--external-socket-initialized that will detect if systemd passed the socket to us.

There's also server-sentinel in server.el:396, which cleans up the socket file. Presumably all that needs to be done is to make it check whether an external process created the socket, and if it did, not clean it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant