[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SI
From: |
Stefan Monnier |
Subject: |
Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM |
Date: |
Sat, 24 Jan 2009 15:39:42 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> On balance, I would leave things as they are, i.e. don't run
>> kill-emacs-hook when we get SIGTERM. After all, we are being killed,
>> so only the minimum necessary cleanup should be in order.
> Another case for not running kill-emacs-hook for SIGTERM is that some elisp
> packages seem to get themselves into inconsistent states (semantic is
> terrible for this) where they throw errors from kill-emacs-hook, so the user
> is forced to kill emacs using SIGTERM. Changing SIGTERM to also run
> kill-emacs-hook would mean only SIGKILL can kill emacs in
> these circumstances.
I'd think that throwing errors from kill-emacs-hook should not prevent
Emacs from exiting. Can someone look into this and fix the problem?
Stefan
- Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM,
Stefan Monnier <=