-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fixed stdout/stderr cut off bug when using RemoteChild::wait_with_output
#104
Conversation
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
… fully read Signed-off-by: Jiahao XU <[email protected]>
@jonhoo P.S. I would like to squash merge this PR and edit the commit messages since I inverted some commits. |
Codecov Report
Additional details and impacted files
|
Signed-off-by: Jiahao XU <[email protected]>
@Fuuzetsu Can you test this PR to see if it fixed the bug for you please? |
Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Jon Gjengset <[email protected]>
Co-authored-by: Jon Gjengset <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Thanks! |
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Do not `set_blocking` on `StdioImpl::inherit` as we do not own them and also do not `set_blocking` on `Stdio` constructed using `FromRawFd::from_raw_fd` Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
Oh, can you update the changelog as well? |
Signed-off-by: Jiahao XU <[email protected]>
Signed-off-by: Jiahao XU <[email protected]>
I've updated the changelog. |
P.S. codecov CI seems to fail due to the invalid token:
|
Oops, I forgot to squash.. Oh well! |
Published in 0.9.8 🎉 |
I think that CI failure is probably temporary |
That indeeds seems so since it worked again on master branch. |
Fixed #103
This PR fixed two bugs:
Fd::as_raw_fd_or_null_fd
in native-mux: Disable non-blocking on all fds before passing them to the ssh multiplex serverRemoteChild::wait_with_output
: Await onself.wait()
after stdout/stderr is fully read in, otherwise the ssh multiplex server would stop writing data to stdout/stderr onceself.wait()
is done (which drops the connection to the server)Signed-off-by: Jiahao XU [email protected]