From: Karoly Lorentey Date: Sat, 29 Jul 2006 22:04:29 +0000 (+0000) Subject: Fix various aborts in get_named_tty. (Patch by Kalle Olavi Niemitalo) X-Git-Tag: emacs-pretest-23.0.90~11236^2~141^2~26 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fdf5ebde4cf8e612cbf099c1477147d96de8b13e;p=emacs.git 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 ) git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-579 --- 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, */ SIGNAL_THREAD_CHECK (signalnum); /* See if we have an active terminal on our controlling tty. */ - terminal = get_named_tty (NULL); + terminal = get_named_tty ("/dev/tty"); if (!terminal) { /* If there are no frames there, let's pretend that we are a @@ -10618,7 +10618,7 @@ handle_interrupt () /* XXX This code needs to be revised for multi-tty support. */ if (!NILP (Vquit_flag) #ifndef MSDOS - && get_named_tty (NULL) + && get_named_tty ("/dev/tty") #endif ) { @@ -10915,14 +10915,14 @@ DEFUN ("set-quit-char", Fset_quit_char, Sset_quit_char, 1, 1, 0, doc: /* Specify character used for quitting. QUIT must be an ASCII character. -This function only has an effect on the terminal on the controlling -tty of the Emacs process. +This function only has an effect on the controlling tty of the Emacs +process. See also `current-input-mode'. */) (quit) Lisp_Object quit; { - struct terminal *t = get_named_tty (NULL); + struct terminal *t = get_named_tty ("/dev/tty"); struct tty_display_info *tty; if (t == NULL || t->type != output_termcap) return Qnil;