Closed NotYourFox closed 1 year ago
What you describe is what would happen if sudo was unable to restore the terminal settings or, potentially, if the terminal settings were restored after bash regains control. Keyboard-generated signals like control-C and control-\ are blocked during password entry so this shouldn't be possible. I was unable to reproduce the problem myself on Ubuntu. It is possible that one of the PAM modules is modifying the signal mask and thus re-enabling control-C.
Working on Linux Mint 21.1 "Vera" Xfce. Using sudo v.1.9.9 Encountered a minor bug, where sudo starts behaving in an unusual way if I were to enter incorrect password and break the process during the delay. After doing this, if you try running sudo again, it will hang. On Ctrl-C, it will show the password prompt, and when correct password is given, it will just terminate, due to Ctrl-C being pressed.
Reproduction:
Temporary solution I found to the problem: Simply restart the bash session. The sudo will behave normally.
Technical information:
sudo --version
inxi -Fxz