Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
365dc66c
Commit
365dc66c
authored
Oct 25, 2010
by
Chong Yidong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document GTK Emacs kill on display close in PROBLEMS.
* src/xterm.c (x_connection_closed): Update comment.
parent
c05c2b9b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
11 deletions
+16
-11
etc/PROBLEMS
etc/PROBLEMS
+9
-10
src/xterm.c
src/xterm.c
+7
-1
No files found.
etc/PROBLEMS
View file @
365dc66c
...
...
@@ -235,19 +235,18 @@ necessary but missing, please report it via M-x report-emacs-bug.
On platforms such as Solaris, you can also work around this problem by
configuring your compiler to use the native linker instead of GNU ld.
**
Emacs compiled with Gtk+ crashes when closing a display (x-close-connection)
.
**
When Emacs is compiled with Gtk+, closing a display kills Emacs
.
Th
is happens because of bugs in Gtk+. Gtk+ 2.10 seems to be OK. See bu
g
http://bugzilla.gnome.org/show_bug.cgi?id=85715.
Th
ere is a long-standing bug in GTK that prevents it from recoverin
g
from disconnects:
http://bugzilla.gnome.org/show_bug.cgi?id=85715.
** Emacs compiled with Gtk+ may loop forever if a display crashes.
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.
This is related to the bug above. A scenario for this is when emacs is run
as a server, and an X frame is created. If the X server for the frame
crashes or exits unexpectedly and an attempt is made to create a new
frame on another X display, then a Gtk+ error happens in the emacs
server that results in an endless loop. This is not fixed in any known
Gtk+ version (2.14.4 being current).
If you need Emacs to be able to recover from closing displays, compile
it with the Lucid toolkit instead of GTK.
* General runtime problems
...
...
src/xterm.c
View file @
365dc66c
...
...
@@ -7698,7 +7698,13 @@ x_connection_closed (Display *dpy, const char *error_message)
#endif
#ifdef USE_GTK
/* Due to bugs in some Gtk+ versions, just exit here. */
/* There is a long-standing bug in GTK that prevents the GTK
main loop from recovering gracefully from disconnects
(https://bugzilla.gnome.org/show_bug.cgi?id=85715). Among
other problems, this gives rise to a stream of Glib error
messages that, in one incident, filled up a user's hard disk
(http://lists.gnu.org/archive/html/emacs-devel/2010-10/msg00927.html).
So, kill Emacs unconditionally if the display is closed. */
{
fprintf (stderr, "%s\n", error_msg);
Fkill_emacs (make_number (70));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment