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: Stefan Monnier
Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM
Date: Thu, 05 Feb 2009 14:40:28 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> Yes, I think this is the right way to do it.  The only change I'd like
>> to do is to do the autosaves as before in the signal handler before
>> passing on the signal through the normal input handling (i.e. before
>> running kill-emacs-hook).

> Well, in an ideal world the signal handler could just set the quit-flag
> which would interrupt running lisp code and in consequence allow the
> sigterm EVENT being handled reliably always, such that things like
> autosave could be done from lisp as well.

No, we want to do the autosave directly from the signal handler (like we
do currently), because the Lisp world might be so completely messed up
that even the quit-flag would never be noticed.


        Stefan




reply via email to

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