[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finishing ssh session with "emacsclient -t" kills emacs daemon

From: Lluís
Subject: Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
Date: Thu, 15 Aug 2013 12:49:33 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Dan Nicolaescu writes:

> Lluís <address@hidden> 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? 

Yes it is.

>> 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?

 "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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]