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: Sat, 24 Jan 2009 00:00:44 +0100 Message-ID: <87vds5fx0j.fsf@thinkpad.tsdh.de> References: <87prihxeu5.fsf@thinkpad.tsdh.de> <87ab9iggl0.fsf@thinkpad.tsdh.de> <497A20D6.4050208@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232751691 7726 80.91.229.12 (23 Jan 2009 23:01:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 23 Jan 2009 23:01:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 00:02:43 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 1LQV2o-00074K-5m for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 00:02:34 +0100 Original-Received: from localhost ([127.0.0.1]:58428 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQV1W-0002Ct-Qf for ged-emacs-devel@m.gmane.org; Fri, 23 Jan 2009 18:01:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQV1E-0001yN-MC for emacs-devel@gnu.org; Fri, 23 Jan 2009 18:00:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQV1C-0001wW-Td for emacs-devel@gnu.org; Fri, 23 Jan 2009 18:00:56 -0500 Original-Received: from [199.232.76.173] (port=55613 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQV1C-0001wN-QF for emacs-devel@gnu.org; Fri, 23 Jan 2009 18:00:54 -0500 Original-Received: from out3.smtp.messagingengine.com ([66.111.4.27]:57027) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LQV1C-0004pz-Dw for emacs-devel@gnu.org; Fri, 23 Jan 2009 18:00:54 -0500 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.fastmail.fm (Postfix) with ESMTP id C58742563FD for ; Fri, 23 Jan 2009 18:00:51 -0500 (EST) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Fri, 23 Jan 2009 18:00:51 -0500 X-Sasl-enc: AxddgveZ1fOAyDpNohmB4cuwmXFJ/sAONBqqv/0piBAn 1232751651 Original-Received: from thinkpad.tsdh.de (p54AF2AAD.dip0.t-ipconnect.de [84.175.42.173]) by mail.messagingengine.com (Postfix) with ESMTPA id EBFD52507E for ; Fri, 23 Jan 2009 18:00:50 -0500 (EST) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Eli Zaretskii's message of "Sat, 24 Jan 2009 00:39:19 +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:108169 Archived-At: Eli Zaretskii writes: >> Uh, but SIGTERM IS "please shutdown". Sorry, but _conventionally_ >> automated systems* will issue a SIGTERM to allow graceful shutdown > > And Emacs obeys this. The argument is not whether Emacs obeys > SIGTERM, the argument is whether user-defined hooks should run when we > are hit with SIGTERM. I don't get what could be so dangerous running a user-defined hook after all buffers have been saved, as Stefan suggested. The worst case I can imagine is that one of the functions accesses a file but is too slow, and a subsequent SIGKILL causes some data loss. But with the current way *every* SIGTERM causes data loss for me. Bye, Tassilo