aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2006-07-29 22:04:29 +0000
committerKaroly Lorentey2006-07-29 22:04:29 +0000
commitfdf5ebde4cf8e612cbf099c1477147d96de8b13e (patch)
treeb0758752b902b44c9e4bcab08c7b6b42e9e58e81
parent6bccb6c592b79418fd7be4bfbb4af94a3d426587 (diff)
downloademacs-fdf5ebde4cf8e612cbf099c1477147d96de8b13e.tar.gz
emacs-fdf5ebde4cf8e612cbf099c1477147d96de8b13e.zip
Fix various aborts in get_named_tty. (Patch by Kalle Olavi Niemitalo)
* src/keyboard.c (interrupt_signal, handle_interrupt, Fset_quit_char): Fix get_named_tty calls for the controlling tty. (Patch by Kalle Olavi Niemitalo <kon@iki.fi>) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-579
-rw-r--r--src/keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 08b352c3c3a..f1bfea0f18c 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10574,7 +10574,7 @@ interrupt_signal (signalnum) /* If we don't have an argument, */
10574 SIGNAL_THREAD_CHECK (signalnum); 10574 SIGNAL_THREAD_CHECK (signalnum);
10575 10575
10576 /* See if we have an active terminal on our controlling tty. */ 10576 /* See if we have an active terminal on our controlling tty. */
10577 terminal = get_named_tty (NULL); 10577 terminal = get_named_tty ("/dev/tty");
10578 if (!terminal) 10578 if (!terminal)
10579 { 10579 {
10580 /* If there are no frames there, let's pretend that we are a 10580 /* If there are no frames there, let's pretend that we are a
@@ -10618,7 +10618,7 @@ handle_interrupt ()
10618 /* XXX This code needs to be revised for multi-tty support. */ 10618 /* XXX This code needs to be revised for multi-tty support. */
10619 if (!NILP (Vquit_flag) 10619 if (!NILP (Vquit_flag)
10620#ifndef MSDOS 10620#ifndef MSDOS
10621 && get_named_tty (NULL) 10621 && get_named_tty ("/dev/tty")
10622#endif 10622#endif
10623 ) 10623 )
10624 { 10624 {
@@ -10915,14 +10915,14 @@ DEFUN ("set-quit-char", Fset_quit_char, Sset_quit_char, 1, 1, 0,
10915 doc: /* Specify character used for quitting. 10915 doc: /* Specify character used for quitting.
10916QUIT must be an ASCII character. 10916QUIT must be an ASCII character.
10917 10917
10918This function only has an effect on the terminal on the controlling 10918This function only has an effect on the controlling tty of the Emacs
10919tty of the Emacs process. 10919process.
10920 10920
10921See also `current-input-mode'. */) 10921See also `current-input-mode'. */)
10922 (quit) 10922 (quit)
10923 Lisp_Object quit; 10923 Lisp_Object quit;
10924{ 10924{
10925 struct terminal *t = get_named_tty (NULL); 10925 struct terminal *t = get_named_tty ("/dev/tty");
10926 struct tty_display_info *tty; 10926 struct tty_display_info *tty;
10927 if (t == NULL || t->type != output_termcap) 10927 if (t == NULL || t->type != output_termcap)
10928 return Qnil; 10928 return Qnil;