]> git.eshelyaron.com Git - emacs.git/commitdiff
(delete_tty): Remove check for last terminal (bug#4970).
authorJan Djärv <jan.h.d@swipnet.se>
Wed, 25 Nov 2009 17:53:54 +0000 (17:53 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Wed, 25 Nov 2009 17:53:54 +0000 (17:53 +0000)
src/ChangeLog
src/term.c

index 36032bd01df44ec253f60fcd0461dbbc94c7949e..e0bb722d8517967e0e69579ac8e3be42e74e76eb 100644 (file)
@@ -1,5 +1,7 @@
 2009-11-25  Jan Djärv  <jan.h.d@swipnet.se>
 
+       * term.c (delete_tty): Remove check for last terminal (bug#4970).
+
        * xsettings.c: Revert changes from 2009-11-23. Just use Xft
        defaults (bug #5025).
 
index d860a9323577262b7311999c13f7d5002510f0ea..fda06d6b2ed98a7f3404fd091b2d743e423b4674 100644 (file)
@@ -3951,8 +3951,6 @@ static void
 delete_tty (struct terminal *terminal)
 {
   struct tty_display_info *tty;
-  Lisp_Object tail, frame;
-  int last_terminal;
 
   /* Protect against recursive calls.  delete_frame in
      delete_terminal calls us back when it deletes our last frame.  */
@@ -3964,19 +3962,6 @@ delete_tty (struct terminal *terminal)
 
   tty = terminal->display_info.tty;
 
-  last_terminal = 1;
-  FOR_EACH_FRAME (tail, frame)
-    {
-      struct frame *f = XFRAME (frame);
-      if (FRAME_LIVE_P (f) && (!FRAME_TERMCAP_P (f) || FRAME_TTY (f) != tty))
-        {
-          last_terminal = 0;
-          break;
-        }
-    }
-  if (last_terminal)
-      error ("Attempt to delete the sole terminal device with live frames");
-
   if (tty == tty_list)
     tty_list = tty->next;
   else