Mercurial > emacs
diff src/term.c @ 106244:af182a117edd
(delete_tty): Remove check for last terminal (bug#4970).
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Wed, 25 Nov 2009 17:53:54 +0000 |
parents | 68dd71358159 |
children | 1d1d5d9bd884 4bad2c6338cc |
line wrap: on
line diff
--- a/src/term.c Wed Nov 25 17:23:45 2009 +0000 +++ b/src/term.c Wed Nov 25 17:53:54 2009 +0000 @@ -3951,8 +3951,6 @@ 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 @@ 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