[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs daemon dies at Xorg crash
From: |
Chong Yidong |
Subject: |
Re: Emacs daemon dies at Xorg crash |
Date: |
Wed, 17 Dec 2008 11:03:22 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Ulrich Mueller <address@hidden> 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.
I suspect that closing X also closes the initial terminal, somehow.
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/17
- Re: Emacs daemon dies at Xorg crash, dhruva, 2008/12/17
- Re: Emacs daemon dies at Xorg crash,
Chong Yidong <=
- Re: Emacs daemon dies at Xorg crash, Dan Nicolaescu, 2008/12/17
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/17
- Re: Emacs daemon dies at Xorg crash, Dan Nicolaescu, 2008/12/17
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Dan Nicolaescu, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Dan Nicolaescu, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Ulrich Mueller, 2008/12/18
- Re: Emacs daemon dies at Xorg crash, Dan Nicolaescu, 2008/12/18