Skip to content

Emacs: Fix socket cleanup #58

Open
@TLATER

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions