all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Welsh Duggan <md5i@md5i.com>
To: Damien Cassou <damien.cassou@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: 24.0.90; Closing an emacsclient frame always kills daemon
Date: Sat, 08 Oct 2011 14:35:45 -0400	[thread overview]
Message-ID: <87botr72m6.fsf@maru.md5i.com> (raw)
In-Reply-To: <CA+y5gghArP_6BbEO8KHnNi0NWKSjZ50YyGM=1AgqUuidfbsCLQ@mail.gmail.com> (Damien Cassou's message of "Wed, 5 Oct 2011 14:24:53 +0200")

Damien Cassou <damien.cassou@gmail.com> 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
(md5i@md5i.com)



      parent reply	other threads:[~2011-10-08 18:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 12:24 24.0.90; Closing an emacsclient frame always kills daemon Damien Cassou
2011-10-05 15:57 ` Richard Riley
2011-10-05 16:26 ` Glenn Morris
2011-10-05 17:54 ` bug#9674: " Glenn Morris
2011-10-06 11:28   ` Damien Cassou
2011-10-06 15:17     ` Chong Yidong
2011-10-06 16:22       ` Damien Cassou
2011-10-05 21:45 ` Chong Yidong
2011-10-08 18:35 ` Michael Welsh Duggan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87botr72m6.fsf@maru.md5i.com \
    --to=md5i@md5i.com \
    --cc=damien.cassou@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.