Subject: bug#33252: 27.0.50; Recursive password prompt takes over

From: Lars Ingebrigtsen <[email-masked]>
Date: Wed, 10 Jul 2019 15:24:26 +0200

Juri Linkov <[email-masked]> writes:

> A reproducible short test case:
>
> 0. emacs -Q
>
> 1. M-&
>    while true; do echo -n "Password: "; sleep 1; done
>    RET
>
> After 42 seconds Emacs session becomes completely unusable, and control
> can be regained only after killing the shell script from outside Emacs.

I've now added a recursion check to the comint prompting, and it'll stop
adding new prompts when it's ten layers deep, which will allow the user
to kill the shell script.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no