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: Eli Zaretskii
Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM
Date: Fri, 23 Jan 2009 21:06:00 +0200

> From: Tassilo Horn <address@hidden>
> Cc: Stefan Monnier <address@hidden>,  address@hidden
> Date: Fri, 23 Jan 2009 16:58:03 +0100
> 
> Init or start-stop-daemon do that.
> 
> > Why can't they use SIGUSRn?
> 
> Because SIGUSRn has different meanings across applications, so the only
> reliable way to terminate a program is "kill <pid>" which send a
> SIGTERM.

You can run your own script when the machine is shut down, can't you?
Then have that script deliver a SIGUSRn signal to Emacs and wait a few
moments for it to shut down peacefully.




reply via email to

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