From 1a27213c2f43c5edc0774ab8a040cf56d6a5ebcc Mon Sep 17 00:00:00 2001 From: Karoly Lorentey Date: Mon, 7 Mar 2005 16:39:57 +0000 Subject: [PATCH] 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. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-304 --- README.multi-tty | 1 + src/xterm.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.multi-tty b/README.multi-tty index d2bbabcabae..1dc75afb390 100644 --- a/README.multi-tty +++ b/README.multi-tty @@ -32,6 +32,7 @@ contributed to the project by testing, submitting patches, bug reports, and suggestions. Thanks! ARISAWA Akihiro +Vincent Bernat Han Boetes Robert J. Chassell Romain Francoise diff --git a/src/xterm.c b/src/xterm.c index aa3f8b1a8b5..56e3f8f9231 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -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)) + return; + BLOCK_INPUT; if (f == NULL) { -- 2.39.5