Mercurial > emacs
changeset 83007:c0cb35d94ea7
Fix SEGV in init_sys_modes during X startup
src/keyboard.c (Fset_input_mode): Don't call {init,reset}_sig_modes if
the tty is the initial tty.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-47
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Fri, 09 Jan 2004 13:12:28 +0000 |
parents | 892c6294eb08 |
children | 040dd41ed7d0 |
files | src/keyboard.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/keyboard.c Tue Jan 06 17:09:40 2004 +0000 +++ b/src/keyboard.c Fri Jan 09 13:12:28 2004 +0000 @@ -10463,7 +10463,7 @@ #ifndef DOS_NT /* this causes startup screen to be restored and messes with the mouse */ - if (FRAME_TERMCAP_P (SELECTED_FRAME ())) + if (FRAME_TERMCAP_P (SELECTED_FRAME ()) && CURTTY ()->type) reset_sys_modes (CURTTY ()); #endif @@ -10507,7 +10507,7 @@ quit_char = XINT (quit) & (CURTTY ()->meta_key ? 0377 : 0177); #ifndef DOS_NT - if (FRAME_TERMCAP_P (XFRAME (selected_frame))) + if (FRAME_TERMCAP_P (XFRAME (selected_frame)) && CURTTY ()->type) init_sys_modes (CURTTY ()); #endif