Jan Djärv <jan.h.d@swipnet.se> writes:
> What happens is that reading from the terminal fails and Emacs tries
> to remove that terminal, but in term.c:
>
> if (last_terminal)
> error ("Attempt to delete the sole terminal device with live frames");
>
>
> which goes back to the command loop, tries to read agan, fails, and
> tries to delete the terminal again, and so on.
>
> If you remove this check, Emacs exits. But I suppose it is there for
> a reason, but I don't know what. Anybody?
It's there so that if you do:
emacs -Q -nw
C-x 5 0
does not exit emacs.