unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Finishing ssh session with "emacsclient -t" kills emacs daemon
@ 2013-08-14 12:44 Lluís
  2013-08-14 14:23 ` Dan Nicolaescu
  0 siblings, 1 reply; 7+ messages in thread
From: Lluís @ 2013-08-14 12:44 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-08-15 20:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-14 12:44 Finishing ssh session with "emacsclient -t" kills emacs daemon Lluís
2013-08-14 14:23 ` Dan Nicolaescu
2013-08-15  9:49   ` Lluís
2013-08-15 10:01     ` Lluís
2013-08-15 11:25       ` Óscar Fuentes
2013-08-15 12:30         ` Lluís
2013-08-15 20:48       ` Dan Nicolaescu

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).