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

Some kind of warning when you are about to quit emacs with running prodigy services #55

Open
mbriggs opened this issue May 12, 2014 · 1 comment

Comments

@mbriggs
Copy link

mbriggs commented May 12, 2014

Emacs usually tells you when you have subprocesses, but there are a few times when I have quit, totally forgetting that emacs is serving my dev environment. Not a huge deal (just have to rm some pids), but probably not something I would do if it wouldnt let me quit without letting me know im possibly about to be an idiot :)

@rejeep
Copy link
Owner

rejeep commented May 13, 2014

This line is what controls that: https://github.com/rejeep/prodigy.el/blob/master/prodigy.el#L997. I think a better solution than to remove that would be to add a hook so that you can remove the pids before quitting. For example:

(prodigy-define-service
  :name "foo"
  :on-kill-emacs
  (lambda ()
    (f-delete (f-join default-directory "tmp" "app.pid") 'force)))

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

2 participants