-
-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Asynchronous execution of sudo in parallel breaks terminal #312
Comments
I can confirm that this bug does not occur with sudo v1.9.0. |
Can you check whether setting Defaults !use_pty in the sudoers file works around the problem? |
hi @millert |
I git bisected and as expected, this is the breaking commit: |
1. Lock the terminal before tcgetattr/tcsetattr 2. Don't restore terminal settings if changed by another process 3. Don't set terminal to raw mode if it is already raw GitHub issue #312
Fixed by fabb626 |
Thanks 👍 |
Regarding the issue addressed here: go-task/task#1369, it looks like there is a regression that causes the tty to break when sudo is running in parallel.
As mentioned in the above issue, it does not require a password prompt to break and can be reproduced by this simple go application:
I'm pretty sure this didn't happen about 1 year ago, so I'm currently trying to bisect this bug.
The text was updated successfully, but these errors were encountered: