From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Functions in kill-emacs-hook aren't run if emacs gets killed with SIGTERM Date: Wed, 21 Jan 2009 15:35:03 -0500 Message-ID: <87ljt4v1mw.fsf@cyd.mit.edu> References: <87prihxeu5.fsf@thinkpad.tsdh.de> <87eiywcudi.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232570133 31227 80.91.229.12 (21 Jan 2009 20:35:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Jan 2009 20:35:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 21 21:36:46 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 1LPjoa-0002CK-Tm for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2009 21:36:46 +0100 Original-Received: from localhost ([127.0.0.1]:52664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPjnJ-0005kU-HC for ged-emacs-devel@m.gmane.org; Wed, 21 Jan 2009 15:35:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LPjmb-0005DP-MQ for emacs-devel@gnu.org; Wed, 21 Jan 2009 15:34:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LPjma-0005Bo-2U for emacs-devel@gnu.org; Wed, 21 Jan 2009 15:34:41 -0500 Original-Received: from [199.232.76.173] (port=46575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LPjmZ-0005BZ-Or for emacs-devel@gnu.org; Wed, 21 Jan 2009 15:34:39 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]:52810) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LPjmZ-0001Fp-Cv for emacs-devel@gnu.org; Wed, 21 Jan 2009 15:34:39 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id 888A457E225; Wed, 21 Jan 2009 15:35:03 -0500 (EST) In-Reply-To: <87eiywcudi.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 21 Jan 2009 19:49:13 +0000") 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:108049 Archived-At: Tassilo Horn writes: > So what's the right way to shutdown emacs running as a daemon > noninteractively? > > emacsclient --eval '(kill-emacs)' > > queries for user input and waits till one connects and answers. I've checked in a fix for this.