Commit 1a27213c authored by Karoly Lorentey's avatar Karoly Lorentey
Browse files

Fix crash condition when an X server connection is broken. (Reported by Vincent Bernat.)

* src/xterm.c (x_flush): Return immediately when redisplay is inhibited.

parent a0d878a9
......@@ -32,6 +32,7 @@ contributed to the project by testing, submitting patches, bug
reports, and suggestions. Thanks!
ARISAWA Akihiro <ari at mbf dot ocn dot ne dot jp>
Vincent Bernat <bernat at luffy dot cx>
Han Boetes <han at mijncomputer dot nl>
Robert J. Chassell <bob at rattlesnake dot com>
Romain Francoise <romain at orebokech dot com>
......@@ -380,6 +380,11 @@ static void
x_flush (f)
struct frame *f;
/* Don't call XFlush when it is not safe to redisplay; the X
connection may be broken. */
if (!NILP (Vinhibit_redisplay))
if (f == NULL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment