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: Finishing ssh session with "emacsclient -t" kills emacs daemon Date: Wed, 14 Aug 2013 15:44:08 +0300 Message-ID: <87bo50e92f.fsf@fimbulvetr.bsc.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1376484269 20301 80.91.229.3 (14 Aug 2013 12:44:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Aug 2013 12:44:29 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 14 14:44:31 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 1V9aRC-0002JH-Am for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 14:44:30 +0200 Original-Received: from localhost ([::1]:60087 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aRB-0006h9-CY for ged-emacs-devel@m.gmane.org; Wed, 14 Aug 2013 08:44:29 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35204) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aR2-0006gi-9w for emacs-devel@gnu.org; Wed, 14 Aug 2013 08:44:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V9aQu-0008Fa-Om for emacs-devel@gnu.org; Wed, 14 Aug 2013 08:44:20 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:61585) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V9aQu-0008EH-Ed for emacs-devel@gnu.org; Wed, 14 Aug 2013 08:44:12 -0400 Original-Received: from localhost ([132.68.49.231]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0MZU7V-1VPjjo33gj-00LJ2Q for ; Wed, 14 Aug 2013 14:44:10 +0200 Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Provags-ID: V03:K0:cQ4lhhBeEjMP+x46x9VBEOYiYc/dUUg2Pv3CUrITwJTjmZQeDqf o1dNHu/GmfkdZNnVU5AVGA9N2WDZswRjB1fiqrsp52V3DPcS/721xHTfjvfPioSGNjOtgQf D4CLcoACROQqBLqh+5sk79cONgoqOpgL7uUQZii2jtAercaE6OfEZ2UcJNu//Y7DzWFzdsA 2p1nyS0vM6TUiHuyW+XEg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.17.21 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:162705 Archived-At: I'd like to keep a daemon running on a server: ssh server "nohup emacs --daemon" 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 whenever 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 session 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 -- "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