From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: Emacs daemon doesn't terminate on SIGTERM any more Date: Sun, 24 Oct 2010 12:05:48 +0200 Message-ID: <4CC404FC.6070905@swipnet.se> References: <19649.19677.433824.461239@a1i15.kph.uni-mainz.de> <19650.5497.137779.175728@a1i15.kph.uni-mainz.de> <4CC2A3DB.2090904@swipnet.se> <4CC3F2F8.5080406@swipnet.se> <19651.63899.97544.502767@a1i15.kph.uni-mainz.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1287914770 19415 80.91.229.12 (24 Oct 2010 10:06:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 24 Oct 2010 10:06:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Ulrich Mueller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 24 12:06:06 2010 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.69) (envelope-from ) id 1P9xSo-0003Na-Fo for ged-emacs-devel@m.gmane.org; Sun, 24 Oct 2010 12:06:06 +0200 Original-Received: from localhost ([127.0.0.1]:37205 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9xSn-0004nN-LL for ged-emacs-devel@m.gmane.org; Sun, 24 Oct 2010 06:06:05 -0400 Original-Received: from [140.186.70.92] (port=33812 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9xSe-0004mT-NU for emacs-devel@gnu.org; Sun, 24 Oct 2010 06:05:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9xSd-0006N7-Ge for emacs-devel@gnu.org; Sun, 24 Oct 2010 06:05:56 -0400 Original-Received: from smtprelay-h22.telenor.se ([195.54.99.197]:49824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9xSd-0006Mt-BY; Sun, 24 Oct 2010 06:05:55 -0400 Original-Received: from ipb1.telenor.se (ipb1.telenor.se [195.54.127.164]) by smtprelay-h22.telenor.se (Postfix) with ESMTP id D69DDE8EFE; Sun, 24 Oct 2010 12:05:50 +0200 (CEST) X-SENDER-IP: [85.225.45.100] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aj03ACKiw0xV4S1kPGdsb2JhbACHcJlzDAEBAQE1LblQhUgEjVM X-IronPort-AV: E=Sophos;i="4.58,231,1286143200"; d="scan'208";a="144236872" Original-Received: from c-642de155.25-1-64736c10.cust.bredbandsbolaget.se (HELO coolsville.localdomain) ([85.225.45.100]) by ipb1.telenor.se with ESMTP; 24 Oct 2010 12:05:50 +0200 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id DA99A7FA05A; Sun, 24 Oct 2010 12:05:49 +0200 (CEST) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.11) Gecko/20101004 Thunderbird/3.1.5 In-Reply-To: <19651.63899.97544.502767@a1i15.kph.uni-mainz.de> X-detected-operating-system: by eggs.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:132045 Archived-At: Ulrich Mueller skrev 2010-10-24 11.17: >>>>>> On Sun, 24 Oct 2010, Jan Dj=E4rv wrote: > >>>> What Emacs needs is some sort of notion of when user interaction >>>> is not OK. For SIGTERM it is almost never ok, as it might be the >>>> window manager/system/whatever that is shutting down. Even >>>> desktop.el will try to ask questions sometimes (i.e. desktop-save >>>> is set but there is no desktop file yet), which is annoying. Maybe >>>> introduce some interaction-ok-p predicate? >>> >>> Things that might ask questions should be on >>> kill-emacs-query-functions, not kill-emacs-hook, shouldn't they? > >> Not sure. Things like desktop.el doesn't want to cancel the >> shutdown, just ask some questions. The message that started this >> thread "The current server still has clients; delete them? (yes or >> no)" is from a function run from delete-frame-functions, which is >> run by delete-frame. > > As far as I can see, the question is asked in function server-start. > Which in turn is called from kill-emacs-hook via function server-mode. > Correct, I must have looked at the wrong function. Jan D. > Also it doesn't make any difference if one answers the question with > yes or with no. The shutdown will proceed in either case. > > Ulrich