diff options
| author | Karoly Lorentey | 2004-01-26 07:57:54 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2004-01-26 07:57:54 +0000 |
| commit | d5188e3f1303543ddbe5c230bf93ab6a8fe66de5 (patch) | |
| tree | 60dee24aa51c82ea536ab9f761a38c21eaa289ed /src | |
| parent | bacb6689058e76f47a6f723cd04fa8679944998b (diff) | |
| download | emacs-d5188e3f1303543ddbe5c230bf93ab6a8fe66de5.tar.gz emacs-d5188e3f1303543ddbe5c230bf93ab6a8fe66de5.zip | |
Prevent core dumps when the X server crashes.
src/xterm.c (x_catch_errors_unwind): Don't call XSync.
(NB: This fix might be too aggressive.)
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-69
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index ffbe4ded419..2d60a534a42 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -7673,7 +7673,11 @@ x_catch_errors_unwind (old_val) | |||
| 7673 | 7673 | ||
| 7674 | first = XCAR (old_val); | 7674 | first = XCAR (old_val); |
| 7675 | 7675 | ||
| 7676 | #if 0 /* XXX This has dumped core on me several times when my X | ||
| 7677 | server crashed. If this call is important, maybe we should | ||
| 7678 | check that the display is still alive. -- lorentey */ | ||
| 7676 | XSync (XSAVE_VALUE (first)->pointer, False); | 7679 | XSync (XSAVE_VALUE (first)->pointer, False); |
| 7680 | #endif | ||
| 7677 | 7681 | ||
| 7678 | x_error_message_string = XCDR (old_val); | 7682 | x_error_message_string = XCDR (old_val); |
| 7679 | return Qnil; | 7683 | return Qnil; |