I was testing emacs --daemon functionality, and called two daemons alive. I wanted to kill them, with

$ pgrep emacs
$ pkill emacs
$ pgrep emacs
# It's alive again!
# Lemme kill them with emacsclient --eval
$ emacsclient -e "(kill-emacs)"
$ pgrep emacs

Are they zombies? I'm sure shutting down my laptop will really kill them.. but just to boost my understanding, what was going on here? How to kill emacs daemons properly (and gracefully?).

  • Could it be that you are running Emacs as a systemd service? Then it may happen that it is re-started. See, e.g., unix.stackexchange.com/questions/486417/… – Tobias Mar 14 '20 at 1:14
  • I am not aware of that.. I eventually kill it by killing it fast multiple times! And it eventually dies without coming up again. It really felt like I was killing a zombie. – Student Mar 14 '20 at 11:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.