GNU bug report logs - #9674
24.0.90; Closing an emacsclient frame always kills daemon

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Damien Cassou <damien.cassou@HIDDEN>; merged with #8501; dated Wed, 5 Oct 2011 12:26:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 8501 9674. Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 9674 <at> debbugs.gnu.org:


Received: (at 9674) by debbugs.gnu.org; 6 Oct 2011 16:23:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 12:23:37 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBqjP-0005Ks-BA
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 12:23:36 -0400
Received: from mail-qy0-f172.google.com ([209.85.216.172])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBqjM-0005Kf-EI
	for 9674 <at> debbugs.gnu.org; Thu, 06 Oct 2011 12:23:33 -0400
Received: by qyk32 with SMTP id 32so5219699qyk.3
	for <9674 <at> debbugs.gnu.org>; Thu, 06 Oct 2011 09:23:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type:content-transfer-encoding;
	bh=fCPZTLBx35bNShWz4bnIx97LjIXAtBlj3UAzBl2YERE=;
	b=eIDrL3dHUpzlYRxX9p0pKMSLydqCQzYkZ/MUttBF8OgqXq423RHxr6UTqHS6q78vWb
	MPc0vagzyS7D9LmrDEje2GOTVcrRP4hbJ50A6mpFf7HdYeyRj3LmdQ0+X9m4ooSmPZHp
	Y7xomfHzqfQGjDkAWeOUKgCmt4HUYVIYP4P5Y=
Received: by 10.68.6.100 with SMTP id z4mr6587950pbz.87.1317918197263; Thu, 06
	Oct 2011 09:23:17 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.173.8 with HTTP; Thu, 6 Oct 2011 09:22:56 -0700 (PDT)
In-Reply-To: <87r52qkv45.fsf@HIDDEN>
References: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
	<pesjn7e32v.fsf@HIDDEN>
	<CA+y5gghf1aRYB_gyo_QeW5+3OHG7Vjyh9fdfWk6BrHduD82ivQ@HIDDEN>
	<87r52qkv45.fsf@HIDDEN>
From: Damien Cassou <damien.cassou@HIDDEN>
Date: Thu, 6 Oct 2011 18:22:56 +0200
Message-ID: <CA+y5ggjg+Wmg-GPLnR=V+gnJCr0kfbF54HZEVuT-En5BPkoF2w@HIDDEN>
Subject: Re: bug#9674: 24.0.90;
	Closing an emacsclient frame always kills daemon
To: Chong Yidong <cyd@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -4.8 (----)
X-Debbugs-Envelope-To: 9674
Cc: Glenn Morris <rgm@HIDDEN>, 9674 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.4 (----)

On Thu, Oct 6, 2011 at 5:17 PM, Chong Yidong <cyd@HIDDEN> wrote:
> I don't understand why that would be a problem, though. =A0Are you saying
> that when "emacs --daemon" is invoked in this way, subsequent attempts
> to connect to the daemon from the same emacsclient fails?

No. I was just answering Glenn who was surprised that launching with
lucid toolkit prints the gtk warning message.

--=20
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.

Message received at 9674 <at> debbugs.gnu.org:


Received: (at 9674) by debbugs.gnu.org; 6 Oct 2011 15:17:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 11:17:32 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBphT-0003nS-UB
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 11:17:32 -0400
Received: from vm-emlprdomr-02.its.yale.edu ([130.132.50.143])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <cyd@HIDDEN>) id 1RBphR-0003nG-FM
	for 9674 <at> debbugs.gnu.org; Thu, 06 Oct 2011 11:17:30 -0400
Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81])
	(authenticated bits=0)
	by vm-emlprdomr-02.its.yale.edu (8.14.4/8.14.4) with ESMTP id
	p96FHEgf028973
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Thu, 6 Oct 2011 11:17:14 -0400
From: Chong Yidong <cyd@HIDDEN>
To: Damien Cassou <damien.cassou@HIDDEN>
Subject: Re: bug#9674: 24.0.90;
	Closing an emacsclient frame always kills daemon
References: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
	<pesjn7e32v.fsf@HIDDEN>
	<CA+y5gghf1aRYB_gyo_QeW5+3OHG7Vjyh9fdfWk6BrHduD82ivQ@HIDDEN>
Date: Thu, 06 Oct 2011 11:17:14 -0400
In-Reply-To: <CA+y5gghf1aRYB_gyo_QeW5+3OHG7Vjyh9fdfWk6BrHduD82ivQ@HIDDEN>
	(Damien Cassou's message of "Thu, 6 Oct 2011 13:28:28 +0200")
Message-ID: <87r52qkv45.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Scanned-By: MIMEDefang 2.71 on 130.132.50.143
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9674
Cc: Glenn Morris <rgm@HIDDEN>, 9674 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Damien Cassou <damien.cassou@HIDDEN> writes:

> When I launch:
>
> $ lib-src/emacsclient --alternate-editor="" -c ~/.bashrc
>
> the daemon is created from /usr/bin/emacs and not from the ./src/emacs
> that I have just compiled.

Yes, emacsclient runs just "emacs --daemon" in this case; it would not
be easy to get it to figure out how that it has to run a non-default
Emacs.

I don't understand why that would be a problem, though.  Are you saying
that when "emacs --daemon" is invoked in this way, subsequent attempts
to connect to the daemon from the same emacsclient fails?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.

Message received at 9674 <at> debbugs.gnu.org:


Received: (at 9674) by debbugs.gnu.org; 6 Oct 2011 11:29:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Oct 06 07:29:05 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBm8P-0003cD-1i
	for submit <at> debbugs.gnu.org; Thu, 06 Oct 2011 07:29:05 -0400
Received: from mail-ww0-f46.google.com ([74.125.82.46])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBm8M-0003bi-E9
	for 9674 <at> debbugs.gnu.org; Thu, 06 Oct 2011 07:29:03 -0400
Received: by wwi18 with SMTP id 18so3965543wwi.15
	for <9674 <at> debbugs.gnu.org>; Thu, 06 Oct 2011 04:28:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:in-reply-to:references:from:date:message-id:subject:to
	:cc:content-type;
	bh=vTgA8+lAMeO0LSvdUAqY1j0TjGSc8v8f7kFx/vkXLXY=;
	b=Q7TPB5URggQCfaf4uDNGGXzI2hhEsp2OU2KTHJcwxHbhSoCjH2NpPSucsfgtbmhbqV
	rudPLcG804tQs6SkSu5jm2zSjRkQygy3gCBErBqdiMVgTb6xftZ6Hph8vNY95eRUXm7Q
	2kHk+ALXG7M4l86u90oo7cHTq5ezQ4zXv6DAk=
Received: by 10.227.152.65 with SMTP id f1mr844026wbw.84.1317900528195; Thu,
	06 Oct 2011 04:28:48 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.180.81.137 with HTTP; Thu, 6 Oct 2011 04:28:28 -0700 (PDT)
In-Reply-To: <pesjn7e32v.fsf@HIDDEN>
References: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
	<pesjn7e32v.fsf@HIDDEN>
From: Damien Cassou <damien.cassou@HIDDEN>
Date: Thu, 6 Oct 2011 13:28:28 +0200
Message-ID: <CA+y5gghf1aRYB_gyo_QeW5+3OHG7Vjyh9fdfWk6BrHduD82ivQ@HIDDEN>
Subject: Re: bug#9674: 24.0.90;
	Closing an emacsclient frame always kills daemon
To: Glenn Morris <rgm@HIDDEN>
Content-Type: text/plain; charset=ISO-8859-1
X-Spam-Score: -4.2 (----)
X-Debbugs-Envelope-To: 9674
Cc: 9674 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -4.1 (----)

On Wed, Oct 5, 2011 at 7:54 PM, Glenn Morris <rgm@HIDDEN> wrote:
> This seems rather backward. I would have expected the issue that message
> refers to to be the actual problem that you are seeing. There's no way
> you can get that message in a non-GTK build. Maybe your system was
> lacking the necessary libraries for a Lucid toolkit build and defaulted
> to gtk? (I don't even know if that can happen.)

Ok, I understand. When I launch:

$ lib-src/emacsclient --alternate-editor="" -c ~/.bashrc

the daemon is created from /usr/bin/emacs and not from the ./src/emacs
that I have just compiled. I guess it's not possible to choose which
emacs to execute using this --alternate-editor parameter. Bug #9682
prevents me from testing with lucid.


-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.

Message received at 9674 <at> debbugs.gnu.org:


Received: (at 9674) by debbugs.gnu.org; 5 Oct 2011 21:46:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 05 17:46:03 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBZHu-0001d0-TB
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 17:46:03 -0400
Received: from vm-emlprdomr-04.its.yale.edu ([130.132.50.145])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <cyd@HIDDEN>) id 1RBZHs-0001cX-V1
	for 9674 <at> debbugs.gnu.org; Wed, 05 Oct 2011 17:46:01 -0400
Received: from furball (dhcp-128-36-14-81.central.yale.edu [128.36.14.81])
	(authenticated bits=0)
	by vm-emlprdomr-04.its.yale.edu (8.14.4/8.14.4) with ESMTP id
	p95LjoLZ015463
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);
	Wed, 5 Oct 2011 17:45:50 -0400
From: Chong Yidong <cyd@HIDDEN>
To: Damien Cassou <damien.cassou@HIDDEN>
Subject: Re: bug#9674: 24.0.90;
	Closing an emacsclient frame always kills daemon
References: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
Date: Wed, 05 Oct 2011 17:45:50 -0400
In-Reply-To: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
	(Damien Cassou's message of "Wed, 5 Oct 2011 14:24:53 +0200")
Message-ID: <87ehyr3yep.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Scanned-By: MIMEDefang 2.71 on 130.132.50.145
X-Spam-Score: -2.7 (--)
X-Debbugs-Envelope-To: 9674
Cc: 9674 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -2.7 (--)

Damien Cassou <damien.cassou@HIDDEN> writes:

> I open emacs with the following:
>
> emacsclient --alternate-editor="" -c ~/.bashrc
>
> According to the manual, it creates a daemon if none is running and
> then creates a client by connecting to this daemon. I confirm this
> behavior by looking at the running processes: I have one process for
> emacsclient and one for emacs --daemon. However, as soon as I close
> the last running emacsclient (with C-x C-c or C-x #), the daemon is
> also terminated.

FWIW, I can't reproduce this (with a GTK build).  After typing C-x # or
C-x C-c, the server is not killed; a subsequent invocation of
emacsclient (via "emacsclient -c ~/.bashrc") accesses the server as
expected.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.

Message received at 9674 <at> debbugs.gnu.org:


Received: (at 9674) by debbugs.gnu.org; 5 Oct 2011 17:54:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 05 13:54:56 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBVgG-0003D2-BG
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 13:54:56 -0400
Received: from fencepost.gnu.org ([140.186.70.10])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <rgm@HIDDEN>) id 1RBVgD-0003Cu-Fo
	for 9674 <at> debbugs.gnu.org; Wed, 05 Oct 2011 13:54:54 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1RBVg8-0008RK-D8; Wed, 05 Oct 2011 13:54:48 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Damien Cassou <damien.cassou@HIDDEN>
Subject: Re: bug#9674: 24.0.90;
	Closing an emacsclient frame always kills daemon
References: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
X-Spook: Honduras constitution red noise White Water tempest Exon
X-Ran: lLW(!3dO.qfXlKG&RE9i#?~+;4u/B?u|vSnH;YVIarI<\T~zt'lV7Cs^I.S^%bez.@R#'W
X-Hue: cyan
X-Attribution: GM
Date: Wed, 05 Oct 2011 13:54:48 -0400
In-Reply-To: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
	(Damien Cassou's message of "Wed, 5 Oct 2011 14:24:53 +0200")
Message-ID: <pesjn7e32v.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.4 (------)
X-Debbugs-Envelope-To: 9674
Cc: 9674 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.4 (------)

Damien Cassou wrote:

> - I also compiled with --with-x-toolkit=lucid, but I must have made
> something wrong as I also got the "Warning: due to a long standing
> Gtk+ bug..." error message when I started emacs.

This seems rather backward. I would have expected the issue that message
refers to to be the actual problem that you are seeing. There's no way
you can get that message in a non-GTK build. Maybe your system was
lacking the necessary libraries for a Lucid toolkit build and defaulted
to gtk? (I don't even know if that can happen.)

Please try a fresh Lucid build again, paying attention to the configure
output. Check in src/config.h that USE_GTK is not defined.

If that works, then I think it might be the same old gtk problem that
the message refers to.

If this issue affects gtk3 as well (I seem to recall it does?) then
emacs.c should also give that message for gtk3 (if it does not already).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 5 Oct 2011 12:25:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Oct 05 08:25:42 2011
Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1RBQXd-0002FR-8o
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 08:25:41 -0400
Received: from eggs.gnu.org ([140.186.70.92])
	by debbugs.gnu.org with esmtp (Exim 4.69)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBQXY-0002FB-Td
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 08:25:39 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBQXL-0007kN-9p
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 08:25:29 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,
	T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1
Received: from lists.gnu.org ([140.186.70.17]:34873)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBQXL-0007kD-87
	for submit <at> debbugs.gnu.org; Wed, 05 Oct 2011 08:25:23 -0400
Received: from eggs.gnu.org ([140.186.70.92]:50354)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBQXG-0003ez-Us
	for bug-gnu-emacs@HIDDEN; Wed, 05 Oct 2011 08:25:23 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <damien.cassou@HIDDEN>) id 1RBQXC-0007jc-Be
	for bug-gnu-emacs@HIDDEN; Wed, 05 Oct 2011 08:25:18 -0400
Received: from mail-qy0-f176.google.com ([209.85.216.176]:45414)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <damien.cassou@HIDDEN>)
	id 1RBQXC-0007jW-9I; Wed, 05 Oct 2011 08:25:14 -0400
Received: by qyk27 with SMTP id 27so1616955qyk.0
	for <multiple recipients>; Wed, 05 Oct 2011 05:25:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
	h=mime-version:from:date:message-id:subject:to:content-type;
	bh=PIJCICAO8ZglNvGTSXt0qoYkAZ8ged6Wr17ZYxfQlPE=;
	b=lIsM9yAjBTo2oxl3/aWsS+h2CDhF/PWT2CUO++W/aXdIJWlcxzTUL04Nhhot+l7PPw
	02b9ro6UvfXcJxY506Zn6vSn03L3uZv51wgKULVlPrg2AnUz8tHS3ozEfJermgKzCiWQ
	8scVLY/Jpc1AlOXh3pBM9xpBde57wG8TtQE+g=
Received: by 10.68.17.1 with SMTP id k1mr18387464pbd.53.1317817513069; Wed, 05
	Oct 2011 05:25:13 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.142.173.8 with HTTP; Wed, 5 Oct 2011 05:24:53 -0700 (PDT)
From: Damien Cassou <damien.cassou@HIDDEN>
Date: Wed, 5 Oct 2011 14:24:53 +0200
Message-ID: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@HIDDEN>
Subject: 24.0.90; Closing an emacsclient frame always kills daemon
To: emacs-devel@HIDDEN, bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset=ISO-8859-1
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2)
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 140.186.70.17
X-Spam-Score: -5.9 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.11
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -5.9 (-----)

Hi,

I open emacs with the following:

emacsclient --alternate-editor="" -c ~/.bashrc

According to the manual, it creates a daemon if none is running and
then creates a client by connecting to this daemon. I confirm this
behavior by looking at the running processes: I have one process for
emacsclient and one for emacs --daemon. However, as soon as I close
the last running emacsclient (with C-x C-c or C-x #), the daemon is
also terminated. Some more information:

- Running with gdb prints a "Program existed normally".

- I can reproduce on sources downloaded from bzr, on debian unstable
(http://emacs.naquadah.org/unstable/) and ubuntu natty
(https://launchpad.net/~cassou/+archive/emacs). The directives used
for compilation are shown below. (note that I used -O0 and
--with-x-toolkit=gtk3).

- Launching emacsclient with -nw does *not* exhibit the problem.

- Compiling with --with-x-toolkit=gtk does exhibit the same problem.

- I also compiled with --with-x-toolkit=lucid, but I must have made
something wrong as I also got the "Warning: due to a long standing
Gtk+ bug..." error message when I started emacs.

- I was not able to run emacs with -q option as emacsclient does not
accept it nor does it allow to pass it to the daemon to be created. I,
however, renamed my .emacs.d directory so that it didn't get loaded (
I have no ~/.emacs file)


Here are the compilation instructions I used with the sources from
bzr. They are very exactly the same as the one used by Julien Danjou
to create http://emacs.naquadah.org/unstable except for the -O0 that I
used to see if the problem persisted (and it does).

CFLAGS="-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O0" ./configure
--build i686-linux-gnu --host i686-linux-gnu --prefix=/usr
--sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var
--infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes
--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.90/site-lisp:/usr/share/emacs/site-lisp
--without-compress-info --with-crt-dir=/usr/lib/i386-linux-gnu/
--with-x=yes --with-x-toolkit=gtk3 --with-imagemagick=yes

/usr/bin/make -j8 CFLAGS="-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g
-O0" LDFLAGS="-g -Wl,--as-needed"

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Load-path shadows:
/usr/share/emacs/24.0.90/site-lisp/cmake-data/cmake-mode hides
/usr/share/emacs/site-lisp/cmake-mode
/usr/share/emacs/24.0.90/site-lisp/debian-startup hides
/usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.0.90/lisp/textmodes/rst

Features:
(shadow sort gnus-util mail-extr message format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mailabbrev mail-utils gmm-utils mailheader
emacsbug help-mode easymenu view vc-git regexp-opt sh-script executable
server time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel
x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dbusbind dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)


-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Lambdas are relegated to relative obscurity until Java makes them
popular by not having them." James Iry




Acknowledgement sent to Damien Cassou <damien.cassou@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#9674; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.