Open nelsyeung opened 1 year ago
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.
sudo
subprocess.PIPE
stdin
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 ofsubprocess.PIPE
forstdin
will be blocked otherwise.