From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Llu=C3=ADs?= Newsgroups: gmane.emacs.devel Subject: Re: Finishing ssh session with "emacsclient -t" kills emacs daemon Date: Thu, 15 Aug 2013 12:49:33 +0300 Message-ID: <874nar9tci.fsf@fimbulvetr.bsc.es> References: <87bo50e92f.fsf@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1376560194 2066 80.91.229.3 (15 Aug 2013 09:49:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Aug 2013 09:49:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 15 11:49:55 2013 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1V9uBn-0002jr-4g for ged-emacs-devel@m.gmane.org; Thu, 15 Aug 2013 11:49:55 +0200 Original-Received: from localhost ([::1]:52109 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9uBm-00027L-Gd for ged-emacs-devel@m.gmane.org; Thu, 15 Aug 2013 05:49:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48459) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9uBc-00026B-J1 for emacs-devel@gnu.org; Thu, 15 Aug 2013 05:49:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9uBV-0003xR-6u for emacs-devel@gnu.org; Thu, 15 Aug 2013 05:49:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:49917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9uBU-0003x4-UP for emacs-devel@gnu.org; Thu, 15 Aug 2013 05:49:37 -0400 Original-Received: from localhost ([132.68.56.70]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Me8ws-1VTFLt1Kfe-00PxoR for ; Thu, 15 Aug 2013 11:49:35 +0200 Mail-Followup-To: Dan Nicolaescu , emacs-devel@gnu.org In-Reply-To: (Dan Nicolaescu's message of "Wed, 14 Aug 2013 10:23:59 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Provags-ID: V03:K0:WS6gzm9ZiVogfDJDvDCuzYlhlqspHUA+jhi/26VH115Hcv3V+Kq 8vexwa2ua2b1duRVeDtBHebN1rpycs4VxXCVPKNuKu7cTrGbKjpRDNNdFxoq+ec78TAwniU EbEJCr748adQWK1BDEjzi0FBuiXpEg2SpDJHQvFNLySXCclMbwhQj9toGS0WrU5Tu8d1Xlm el5UcsKM1xJ7fh65BJgYQ== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.19 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:162754 Archived-At: Dan Nicolaescu writes: > Llu=C3=ADs writes: >> I'd like to keep a daemon running on a server: >>=20 >> ssh server "nohup emacs --daemon" > Is this emacs compiled with the Gtk+ toolkit?=20 Yes it is. >> Then, be able to connect to it from different machines using the graphic= al >> frontend: >>=20 >> ssh -X server "nohup emacsclient -c" >>=20 >> The problem is that the ssh gets "stuck" after exiting emacs, and whenev= er I C-c >> it, the daemon just dies. The same happens if I do this "manually": >>=20 >> ssh -X server >> emacsclient -c >> exit >>=20 >> The ssh client gets stuck on the exit, and using C-c finishes the ssh se= ssion >> together with the emacs daemon. If instead I use the terminal frontend, >> everything works fine: >>=20 >> ssh -X server >> emacsclient -t >> exit >>=20 >> but that's not what I want. >>=20 >> As a side note, using this: >>=20 >> ssh server "nohup emacsclient -c" >>=20 >> results in the error "emacsclient: could not get terminal name". >>=20 >>=20 >> Is there any way around the first problem? --=20 "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth