comparison src/keyboard.c @ 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 7900111db01c
children 040dd41ed7d0
comparison
equal deleted inserted replaced
83006:892c6294eb08 83007:c0cb35d94ea7
10461 stop_polling (); 10461 stop_polling ();
10462 #endif 10462 #endif
10463 10463
10464 #ifndef DOS_NT 10464 #ifndef DOS_NT
10465 /* this causes startup screen to be restored and messes with the mouse */ 10465 /* this causes startup screen to be restored and messes with the mouse */
10466 if (FRAME_TERMCAP_P (SELECTED_FRAME ())) 10466 if (FRAME_TERMCAP_P (SELECTED_FRAME ()) && CURTTY ()->type)
10467 reset_sys_modes (CURTTY ()); 10467 reset_sys_modes (CURTTY ());
10468 #endif 10468 #endif
10469 10469
10470 #ifdef SIGIO 10470 #ifdef SIGIO
10471 /* Note SIGIO has been undef'd if FIONREAD is missing. */ 10471 /* Note SIGIO has been undef'd if FIONREAD is missing. */
10505 if (!NILP (quit)) 10505 if (!NILP (quit))
10506 /* Don't let this value be out of range. */ 10506 /* Don't let this value be out of range. */
10507 quit_char = XINT (quit) & (CURTTY ()->meta_key ? 0377 : 0177); 10507 quit_char = XINT (quit) & (CURTTY ()->meta_key ? 0377 : 0177);
10508 10508
10509 #ifndef DOS_NT 10509 #ifndef DOS_NT
10510 if (FRAME_TERMCAP_P (XFRAME (selected_frame))) 10510 if (FRAME_TERMCAP_P (XFRAME (selected_frame)) && CURTTY ()->type)
10511 init_sys_modes (CURTTY ()); 10511 init_sys_modes (CURTTY ());
10512 #endif 10512 #endif
10513 10513
10514 #ifdef POLL_FOR_INPUT 10514 #ifdef POLL_FOR_INPUT
10515 poll_suppress_count = 1; 10515 poll_suppress_count = 1;