GNU bug report logs - #11741
24.1; Daemon Dies When X Exits

Previous Next

Package: emacs;

Reported by: woddfellow2 <woddfellow2 <at> gmail.com>

Date: Tue, 19 Jun 2012 16:06:01 UTC

Severity: normal

Merged with 1493, 4078, 5802, 8750

Found in versions 24.0.50, 24.1

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: woddfellow2 <woddfellow2 <at> gmail.com>
Cc: 11741 <at> debbugs.gnu.org
Subject: bug#11741: 24.1; Daemon Dies When X Exits
Date: Tue, 19 Jun 2012 12:18:01 -0400
woddfellow2 wrote:

> If I start an Emacs daemon, even outside of X, then open an emacsclient
> frame in X, then C-x 5 0, then exit X, the daemon dies. This happens
> even with emacs -Q. This appears to e a regression, as Emacs 23 did not
> have this problem:
>
>   Connection lost to X server `:0'
>   When compiled with GTK, Emacs cannot recover from X disconnects.
>   This is a GTK bug: https://bugzilla.gnome.org/show_bug.cgi?id=85715
>   For details, see etc/PROBLEMS.

The above message seems pretty clear to me.

Here's what the etc/PROBLEMS entry says:

    ** When Emacs is compiled with Gtk+, closing a display kills Emacs.

    There is a long-standing bug in GTK that prevents it from recovering
    from disconnects: http://bugzilla.gnome.org/show_bug.cgi?id=85715.

    Thus, for instance, when Emacs is run as a server on a text terminal,
    and an X frame is created, and the X server for that frame crashes or
    exits unexpectedly, Emacs must exit to prevent a GTK error that would
    result in an endless loop.

    If you need Emacs to be able to recover from closing displays, compile
    it with the Lucid toolkit instead of GTK.




This bug report was last modified 12 years and 276 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.