emacs-devel
[Top][All Lists]
Advanced

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

Re: 24.0.90; Closing an emacsclient frame always kills daemon


From: Michael Welsh Duggan
Subject: Re: 24.0.90; Closing an emacsclient frame always kills daemon
Date: Sat, 08 Oct 2011 14:35:45 -0400
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Damien Cassou <address@hidden> writes:

> I open emacs with the following:
>
> emacsclient --alternate-editor="" -c ~/.bashrc
>
> According to the manual, it creates a daemon if none is running and
> then creates a client by connecting to this daemon. I confirm this
> behavior by looking at the running processes: I have one process for
> emacsclient and one for emacs --daemon. However, as soon as I close
> the last running emacsclient (with C-x C-c or C-x #), the daemon is
> also terminated. Some more information:
>
> - Running with gdb prints a "Program existed normally".

I have encountered this with gdb as well.  I solved this by adding the
following lines to my src/.gdbinit:


# Follow emacs when running using --daemon.  We need to follow the
# child of the daemonizing fork, and go back to following parent's
# shortly afterward.
break main
commands
  silent
  set follow-fork-mode child
  continue
end
break init_signals
commands
  silent
  set follow-fork-mode parent
  continue
end

-- 
Michael Welsh Duggan
(address@hidden)



reply via email to

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