diff options
| author | Karoly Lorentey | 2005-12-13 19:03:29 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-12-13 19:03:29 +0000 |
| commit | bedeffcffb4ad37ccfc3ba13436583d4f60f8b31 (patch) | |
| tree | 1f82487d4a9d1ad503aa0fd3fb58e52bf94278f6 /src | |
| parent | f369f10bdce359e960c3921f8e421d965a9038eb (diff) | |
| download | emacs-bedeffcffb4ad37ccfc3ba13436583d4f60f8b31.tar.gz emacs-bedeffcffb4ad37ccfc3ba13436583d4f60f8b31.zip | |
Work around Emacs crash on Konsole detach. (Tom Schutzer-Weissmann)
* src/dispnew.c (window_change_signal): Don't believe width/height values
that are impossibly small.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-452
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dispnew.c b/src/dispnew.c index 095400eb70d..0de517c5293 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -6050,7 +6050,7 @@ window_change_signal (signalnum) /* If we don't have an argument, */ | |||
| 6050 | #ifndef USE_CRT_DLL | 6050 | #ifndef USE_CRT_DLL |
| 6051 | extern int errno; | 6051 | extern int errno; |
| 6052 | #endif | 6052 | #endif |
| 6053 | int old_errno = errno; | 6053 | int old_errno = errno;x |
| 6054 | 6054 | ||
| 6055 | struct tty_display_info *tty; | 6055 | struct tty_display_info *tty; |
| 6056 | 6056 | ||
| @@ -6068,7 +6068,7 @@ window_change_signal (signalnum) /* If we don't have an argument, */ | |||
| 6068 | 6068 | ||
| 6069 | get_tty_size (fileno (tty->input), &width, &height); | 6069 | get_tty_size (fileno (tty->input), &width, &height); |
| 6070 | 6070 | ||
| 6071 | { | 6071 | if (width > 5 && height > 2) { |
| 6072 | Lisp_Object tail, frame; | 6072 | Lisp_Object tail, frame; |
| 6073 | 6073 | ||
| 6074 | FOR_EACH_FRAME (tail, frame) | 6074 | FOR_EACH_FRAME (tail, frame) |