-
Notifications
You must be signed in to change notification settings - Fork 148
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
Handle EAGAIN automatically when writing to stdin buffer #165
Comments
I finally got the output as I expected after some dig.
It seems flush() and read() method will consume the stdin data. Any suggestion is appreciated if there's room for improvement. ps: newbee to pssh ^_^. |
Hi there, Thanks for the interest and report.
The other issue is that |
sudo -S does not require a password when cached credential is still available. None-password-required output data will be lost. So, only
|
I don't understand what "None-password-required output data will be lost." means. Stdin is an input buffer, it does not provide output nor should it be read from. Output is in stdout. EAGAIN for stdin should be handled on call to |
sudo -S does not require a password when cached credential is still available.
Output might be flushed unexpectedly when there is no password required.
Code like the tutorial:
Output:
Here is my propose/question:
A: Make sure sudo password is required every time by changing
sudo -S
tosudo -Sk
or so in pssh/clients/native/single.py#L437.B: How can we do not flush stdin when there is no keyword show up. Any help (document/code) is appreciated.
The text was updated successfully, but these errors were encountered: