From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader 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 15:11:47 +0900 Message-ID: <87y6x1utb0.fsf@catnip.gol.com> References: <87prihxeu5.fsf@thinkpad.tsdh.de> <497A9BD2.4010607@gnu.org> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232777542 29641 80.91.229.12 (24 Jan 2009 06:12:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 24 Jan 2009 06:12:22 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org, tassilo@member.fsf.org, Stefan Monnier To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 24 07:13:35 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 1LQblr-0006Ou-7v for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 07:13:31 +0100 Original-Received: from localhost ([127.0.0.1]:35917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQbkZ-0003Dw-1m for ged-emacs-devel@m.gmane.org; Sat, 24 Jan 2009 01:12:11 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LQbkR-0003CN-Iz for emacs-devel@gnu.org; Sat, 24 Jan 2009 01:12:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LQbkO-00039m-RE for emacs-devel@gnu.org; Sat, 24 Jan 2009 01:12:02 -0500 Original-Received: from [199.232.76.173] (port=48513 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LQbkO-00039W-Hs for emacs-devel@gnu.org; Sat, 24 Jan 2009 01:12:00 -0500 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:59987) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LQbkK-0007Sh-4O; Sat, 24 Jan 2009 01:11:56 -0500 Original-Received: from 218.231.174.254.eo.eaccess.ne.jp ([218.231.174.254] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1LQbkG-0000vI-Oc; Sat, 24 Jan 2009 15:11:52 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 0CA1BDFB6; Sat, 24 Jan 2009 15:11:48 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <497A9BD2.4010607@gnu.org> (Jason Rumney's message of "Sat, 24 Jan 2009 12:40:50 +0800") Original-Lines: 15 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:108178 Archived-At: Jason Rumney writes: > Another case for not running kill-emacs-hook for SIGTERM is that some > elisp packages seem to get themselves into inconsistent states (semantic > is terrible for this) where they throw errors from kill-emacs-hook, so > the user is forced to kill emacs using SIGTERM. Changing SIGTERM to also > run kill-emacs-hook would mean only SIGKILL can kill emacs in these > circumstances. Well not really -- there are plenty of other signals to choose from! -Miles -- Barometer, n. An ingenious instrument which indicates what kind of weather we are having.