From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: bug in server-start Date: Mon, 15 Dec 2008 09:24:28 -0800 (PST) Message-ID: <200812151724.mBFHOSnS029425@mothra.ics.uci.edu> References: <18758.7352.558182.931572@kahikatea.snap.net.nz> <18758.14760.572830.277734@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1229363840 22833 80.91.229.12 (15 Dec 2008 17:57:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2008 17:57:20 +0000 (UTC) Cc: Juanma Barranquero , Nick Roberts , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 15 18:58:24 2008 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 1LCHhw-0000d0-Vd for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 18:58:17 +0100 Original-Received: from localhost ([127.0.0.1]:48429 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCHgl-0001r5-3Q for ged-emacs-devel@m.gmane.org; Mon, 15 Dec 2008 12:57:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCHIj-0004zc-MS for emacs-devel@gnu.org; Mon, 15 Dec 2008 12:32:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCHIi-0004xp-20 for emacs-devel@gnu.org; Mon, 15 Dec 2008 12:32:12 -0500 Original-Received: from [199.232.76.173] (port=52786 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCHIh-0004xC-Nf for emacs-devel@gnu.org; Mon, 15 Dec 2008 12:32:11 -0500 Original-Received: from barrelv2.ics.uci.edu ([128.195.1.114]:55408) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LCHIh-0000Nn-93 for emacs-devel@gnu.org; Mon, 15 Dec 2008 12:32:11 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by barrelv2.ics.uci.edu (8.13.8+Sun/8.13.8) with ESMTP id mBFHVwxh024216; Mon, 15 Dec 2008 09:31:58 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mBFHOSnS029425; Mon, 15 Dec 2008 09:24:28 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Mon, 15 Dec 2008 10:25:53 -0500") Original-Lines: 26 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mBFHVwxh024216 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:106938 Archived-At: Stefan Monnier writes: > > What benefit does that bring? Presumably, previously the first Emacs > > instance was the current server, which was fine with me. > > No, as mentioned the second was "the current server", overriding > the first. And when the second exits, it doesn't magically re-enable > the first. > So when starting the second (in Emacs-22), the first server is neutered, > but without even knowing it. In Emacs-22 it was a problem, but a fairly > minor one. With "emacs --daemon" this is now a much more serious > problem since if the daemon is thus neutered it will keep running > without the user having any way to access it: it can only look for it in > `ps' and kill it. We could install something by default to restart the server when receiving an USR1 or USR2 signal. Also currently the daemon is broken: emacs -Q -f server-start& emacs --daemon Server "server" is already running and the daemon is not started...