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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  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
  0 siblings, 1 reply; 7+ messages in thread
From: Dan Nicolaescu @ 2013-08-14 14:23 UTC (permalink / raw)
  To: emacs-devel

Lluís <xscript@gmx.net> 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? 


> 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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  2013-08-14 14:23 ` Dan Nicolaescu
@ 2013-08-15  9:49   ` Lluís
  2013-08-15 10:01     ` Lluís
  0 siblings, 1 reply; 7+ messages in thread
From: Lluís @ 2013-08-15  9:49 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

Dan Nicolaescu writes:

> Lluís <xscript@gmx.net> 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
 Tollbooth



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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  2013-08-15  9:49   ` Lluís
@ 2013-08-15 10:01     ` Lluís
  2013-08-15 11:25       ` Óscar Fuentes
  2013-08-15 20:48       ` Dan Nicolaescu
  0 siblings, 2 replies; 7+ messages in thread
From: Lluís @ 2013-08-15 10:01 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

Lluís  writes:

> Dan Nicolaescu writes:
>> Lluís <xscript@gmx.net> 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.

I just realized that the emacs-lucid package does not have this problem. Is this
supposed to behave like this?


Thanks,
  Lluis



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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  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
  1 sibling, 1 reply; 7+ messages in thread
From: Óscar Fuentes @ 2013-08-15 11:25 UTC (permalink / raw)
  To: Lluís; +Cc: emacs-devel

Lluís <xscript@gmx.net> 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.
>
> I just realized that the emacs-lucid package does not have this
> problem. Is this supposed to behave like this?

The problem you experienced with Emacs/Gtk+ is a long-standing one.

This is an old PR from yours truly:

http://debbugs.gnu.org/db/33/3360.html



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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  2013-08-15 11:25       ` Óscar Fuentes
@ 2013-08-15 12:30         ` Lluís
  0 siblings, 0 replies; 7+ messages in thread
From: Lluís @ 2013-08-15 12:30 UTC (permalink / raw)
  To: Óscar Fuentes; +Cc: emacs-devel

Óscar Fuentes writes:

> Lluís <xscript@gmx.net> 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.
>> 
>> I just realized that the emacs-lucid package does not have this
>> problem. Is this supposed to behave like this?

> The problem you experienced with Emacs/Gtk+ is a long-standing one.

> This is an old PR from yours truly:

> http://debbugs.gnu.org/db/33/3360.html

Well, looks like I'll have to stick with lucid for some more time when doing
remote connections :)

Thanks for the info

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

* Re: Finishing ssh session with "emacsclient -t" kills emacs daemon
  2013-08-15 10:01     ` Lluís
  2013-08-15 11:25       ` Óscar Fuentes
@ 2013-08-15 20:48       ` Dan Nicolaescu
  1 sibling, 0 replies; 7+ messages in thread
From: Dan Nicolaescu @ 2013-08-15 20:48 UTC (permalink / raw)
  To: emacs-devel

Lluís <xscript@gmx.net> writes:

> Lluís  writes:
>
>> Dan Nicolaescu writes:
>>> Lluís <xscript@gmx.net> 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.
>
> I just realized that the emacs-lucid package does not have this problem. Is this
> supposed to behave like this?

emacs --daemon 

should print a warning about the Gtk+ version having a problem.  
The problem is a long standing Gtk+ bug.



^ 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).