Mercurial > emacs
changeset 83264:3b1209720d0e
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
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Mon, 07 Mar 2005 16:39:57 +0000 |
parents | 1f334cdd7020 |
children | 49a45eb55f63 |
files | README.multi-tty src/xterm.c |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/README.multi-tty Sun Mar 06 13:31:20 2005 +0000 +++ b/README.multi-tty Mon Mar 07 16:39:57 2005 +0000 @@ -32,6 +32,7 @@ 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>
--- a/src/xterm.c Sun Mar 06 13:31:20 2005 +0000 +++ b/src/xterm.c Mon Mar 07 16:39:57 2005 +0000 @@ -380,6 +380,11 @@ 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) {