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: Richard M Stallman
Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM
Date: Thu, 22 Jan 2009 20:52:50 -0500

SIGTERM's handler could run from anywhere, even in code in
the interpreter during which interpreter data structures are
temporarily inconsistent.  So there is no telling what might go wrong
if it tries to run kill-emacs-hook.

    Maybe another option is to first perform the autosaves (like
    shut_down_emacs does), and then run a hook.  This way, no matter what
    the hook does, no data is lost.

I agree that is safer.




reply via email to

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