]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix various aborts in get_named_tty. (Patch by Kalle Olavi Niemitalo)
authorKaroly Lorentey <lorentey@elte.hu>
Sat, 29 Jul 2006 22:04:29 +0000 (22:04 +0000)
committerKaroly Lorentey <lorentey@elte.hu>
Sat, 29 Jul 2006 22:04:29 +0000 (22:04 +0000)
* 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

src/keyboard.c

index 08b352c3c3a38d0d295899a2b1b1162eaa4da7fb..f1bfea0f18c6687b08600ceb0b62a974d43e3e27 100644 (file)
@@ -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;