# HG changeset patch # User Karoly Lorentey # Date 1073653948 0 # Node ID c0cb35d94ea768a83efa2b3a3a63ff49e375e822 # Parent 892c6294eb081a3b22ea300be45026e2fad156d4 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 diff -r 892c6294eb08 -r c0cb35d94ea7 src/keyboard.c --- 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