unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dan Nicolaescu <dann@ics.uci.edu>
To: Chong Yidong <cyd@stupidchicken.com>
Cc: "Ulrich Mueller" <ulm@gentoo.org>,
	"Diego E. 'Flameeyes' Pettenò" <flameeyes@gmail.com>,
	emacs-devel@gnu.org
Subject: Re: Emacs daemon dies at Xorg crash
Date: Wed, 17 Dec 2008 09:08:43 -0800 (PST)	[thread overview]
Message-ID: <200812171708.mBHH8hPO008789@mothra.ics.uci.edu> (raw)
In-Reply-To: <87k59yssad.fsf@cyd.mit.edu> (Chong Yidong's message of "Wed, 17 Dec 2008 11:03:22 -0500")

Chong Yidong <cyd@stupidchicken.com> writes:

  > Ulrich Mueller <ulm@gentoo.org> writes:
  > 
  > > AFAICS Emacs only dies if there's no other connection open. I've
  > > tested it with another client open on a tty, and Emacs survived.
  > >
  > > The last thing it outputs is "Connection lost to X server `:0.0'", so
  > > it passes through x_io_error_quitter, which in turn will call
  > > x_connection_closed.
  > >
  > > In x_connection_closed there are two tests for the last terminal,
  > > where shut_down_emacs is called. Probably this should be modified for
  > > the daemon case?
  > 
  > I'm not sure this is the problem.  The two tests you mention are
  > 
  >   if (terminal_list->next_terminal == NULL)
  > 
  > where terminal_list points to the X terminal about to be deleted, and
  > 
  >   if (terminal_list == 0)
  > 
  > after the deletion of the terminal.  Unless the code has changed since
  > the last time I looked at it, Emacs uses an initial terminal, which
  > neither sends nor receives anything, when it is run as a daemon; the
  > existence of this initial terminal should prevent shut_down_emacs from
  > being called.

Agreed.
There wasn't enough context in the initial mail, but I suspect this is
an emacs compiled with Gtk+.  It works (and it has always done so)
perfectly well for me when using Lucid.

There's a long standing Gtk+ bug:
http://bugzilla.gnome.org/show_bug.cgi?id=85715
that creates problems with closing the display for Emacs from time to
time.  Jan has put in a few workarounds, but the bug in Gtk+ still
exists.




  reply	other threads:[~2008-12-17 17:08 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1229454957.21129.0.camel@localhost>
2008-12-17 11:10 ` Emacs daemon dies at Xorg crash Ulrich Mueller
2008-12-17 11:37   ` dhruva
2008-12-17 16:03   ` Chong Yidong
2008-12-17 17:08     ` Dan Nicolaescu [this message]
2008-12-17 19:25       ` Ulrich Mueller
2008-12-17 22:51         ` Dan Nicolaescu
2008-12-18 12:03           ` Ulrich Mueller
2008-12-18 12:14             ` Ulrich Mueller
2008-12-18 19:14             ` Dan Nicolaescu
2008-12-18 22:03               ` Ulrich Mueller
2008-12-18 22:49                 ` Dan Nicolaescu
2008-12-19  0:04                   ` Ulrich Mueller
2008-12-19  0:46                     ` Dan Nicolaescu
2008-12-19  8:00                       ` Ulrich Mueller
2008-12-19 17:00                         ` Dan Nicolaescu
2008-12-19 17:27                           ` Ulrich Mueller
2008-12-19 17:47                             ` Dan Nicolaescu
2008-12-19 13:56                       ` Stefan Monnier
2008-12-19 16:45                         ` Dan Nicolaescu
2008-12-20 18:35                   ` Ulrich Mueller

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=200812171708.mBHH8hPO008789@mothra.ics.uci.edu \
    --to=dann@ics.uci.edu \
    --cc=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=flameeyes@gmail.com \
    --cc=ulm@gentoo.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 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).