From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM Date: Mon, 02 Feb 2009 21:52:29 +0100 Message-ID: <87ljso8stu.fsf@thinkpad.tsdh.de> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1233607974 10714 80.91.229.12 (2 Feb 2009 20:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 20:52:54 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 21:54:08 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LU5nw-0005Fr-N2 for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 21:54:05 +0100 Original-Received: from localhost ([127.0.0.1]:44220 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU5me-0007IR-2s for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 15:52:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU5mZ-0007I3-En for emacs-devel@gnu.org; Mon, 02 Feb 2009 15:52:39 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU5mY-0007Hj-VO for emacs-devel@gnu.org; Mon, 02 Feb 2009 15:52:39 -0500 Original-Received: from [199.232.76.173] (port=47509 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU5mY-0007Hb-Er for emacs-devel@gnu.org; Mon, 02 Feb 2009 15:52:38 -0500 Original-Received: from out4.smtp.messagingengine.com ([66.111.4.28]:58448) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LU5mW-0005Tr-Bd; Mon, 02 Feb 2009 15:52:36 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id B6E7D27BB79; Mon, 2 Feb 2009 15:52:33 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 02 Feb 2009 15:52:33 -0500 X-Sasl-enc: z8qFRGjCdxcBjoTqwQ6i9E6MSSc6t7l6Ok9W25ZWZqkM 1233607953 Original-Received: from thinkpad.tsdh.de (p54AF2CD1.dip0.t-ipconnect.de [84.175.44.209]) by mail.messagingengine.com (Postfix) with ESMTPA id 3A3BF25065; Mon, 2 Feb 2009 15:52:31 -0500 (EST) Mail-Followup-To: Eli Zaretskii , Stefan Monnier , emacs-devel@gnu.org In-Reply-To: (Eli Zaretskii's message of "Mon, 02 Feb 2009 22:23:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:108636 Archived-At: Eli Zaretskii writes: >> > 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. > > From _outside_ Emacs, yes. Which isn't the case here. When emacs is started with --daemon users (me!) forget to kill it manually, and so init does it when the whole system shuts down. That's not from _outside_ Emacs? > Anyway, Dan suggested a better way long ago, so it's IMO pointless to > continue this argument. Do you have a message-id / url at hand? Bye, Tassilo