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: Finishing ssh session with "emacsclient -t" kills emacs daemon Date: Wed, 14 Aug 2013 10:23:59 -0400 Message-ID: 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 1376490253 28487 80.91.229.3 (14 Aug 2013 14:24:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 14:24:13 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 14 16:24:16 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 1V9bzh-00058r-Si for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 16:24:13 +0200 Original-Received: from localhost ([::1]:33512 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9bzh-0002cK-AU for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 10:24:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60801) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9bzZ-0002bn-D7 for emacs-devel@gnu.org; Wed, 14 Aug 2013 10:24:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9bzU-0006Su-PT for emacs-devel@gnu.org; Wed, 14 Aug 2013 10:24:05 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:55768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9bzU-0006Sp-LU for emacs-devel@gnu.org; Wed, 14 Aug 2013 10:24:00 -0400 Original-Received: from dann by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1V9bzU-0003UP-Ej for emacs-devel@gnu.org; Wed, 14 Aug 2013 10:24:00 -0400 In-Reply-To: <87bo50e92f.fsf@fimbulvetr.bsc.es> (=?utf-8?Q?=22Llu=C3=ADs?= =?utf-8?Q?=22's?= message of "Wed, 14 Aug 2013 15:44:08 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:162711 Archived-At: Llu=C3=ADs writes: > I'd like to keep a daemon running on a server: > > ssh server "nohup emacs --daemon" Is this emacs compiled with the Gtk+ toolkit?=20 > Then, be able to connect to it from different machines using the graphical > frontend: > > ssh -X server "nohup emacsclient -c" > > The problem is that the ssh gets "stuck" after exiting emacs, and wheneve= r I C-c > it, the daemon just dies. The same happens if I do this "manually": > > ssh -X server > emacsclient -c > exit > > The ssh client gets stuck on the exit, and using C-c finishes the ssh ses= sion > together with the emacs daemon. If instead I use the terminal frontend, > everything works fine: > > ssh -X server > emacsclient -t > exit > > but that's not what I want. > > As a side note, using this: > > ssh server "nohup emacsclient -c" > > results in the error "emacsclient: could not get terminal name". > > > Is there any way around the first problem? > > > Thanks, > Lluis > > --=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