Skip to content
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

#486 Fix sudo hangs on second run #898

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nelsyeung
Copy link

@nelsyeung nelsyeung commented Dec 23, 2022

Fixes #486

The process stays alive after the sudo fail attempt (because it'll ask for the password again, so the process will wait for another stdin), so we must terminate it. Any subsequent use of subprocess.PIPE for stdin will be blocked otherwise.

@nelsyeung nelsyeung changed the title Fix sudo hangs on second run #486 Fix sudo hangs on second run Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Context.run and Context.sudo hang if run with FailingResponder watcher.
2 participants