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: Sat, 24 Jan 2009 15:32:43 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> We may also delay it indefinitely if we run Lisp, because that could
> infloop, especially if our internal data structures are unstable.

What makes you think our data structures might be unstable when we
get SIGTERM?  AFAIK this signal is only received when some external
process decides that Emacs should stop, so data structures should be
just as stable as when we receive SIGUSRn.

> If SIGTERM is used to programmatically shut down Emacs, I think it's
> rather a conceptual bug in whatever uses SIGTERM for that purpose.

Huh?  SIGTERM is *the canonical way* to programmatically shut down an
application via a signal.


        Stefan




reply via email to

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