diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2022-10-29 14:08:06 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2022-10-29 21:53:28 -0700 |
commit | 43f476191286b7f4b34ea9b69f4efe9a8c86fe66 (patch) | |
tree | 39221f1e9757f6b7f3426f7ec944da23956d57db | |
parent | 24a186c5623784170c990fbfd410079984bb6aa2 (diff) | |
download | dotfiles-43f476191286b7f4b34ea9b69f4efe9a8c86fe66.tar.gz |
spw/daemon-lock-self: don't sleep forever
If the quit gets stuck and I have to kill -9, the sleep(1) can survive.
-rw-r--r-- | .emacs.d/init.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el index dbc8c7db..8f6f25e0 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -2354,7 +2354,7 @@ Called by '~/src/dotfiles/bin/emacsclient --spw/update-environment'." (cl-etypecase (daemonp) (string (daemonp)) (t "server"))))) (set-process-query-on-exit-flag (start-process "spw_emacsclient" nil - "flock" "-E" "0" "-n" file "sleep" "infinity") + "flock" "-E" "0" "-n" file "sleep" "20") nil)))) (add-hook 'kill-emacs-hook #'spw/daemon-lock-self -99) |