emacs-devel
[Top][All Lists]
Advanced

[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: Jason Rumney
Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM
Date: Sat, 24 Jan 2009 12:40:50 +0800
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

Eli Zaretskii wrote:
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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]