Descriptiongo.crypto/ssh: don't block Wait on copying stdin
The new TestRunCommandStdin test case would block
with the old code, as Wait blocks until the stdio
copy goroutines complete. To resolve this, I have
added a pipe between the user-specified stdin and
the stdin channel. The write end of the pipe is
closed prior to waiting for the copy goroutine's
completion.
Fixes #6088
Patch Set 1 #Patch Set 2 : diff -r 6478cc9340cb https://code.google.com/p/go.crypto #Patch Set 3 : diff -r ebfe91cdc034 https://code.google.com/p/go.crypto #
MessagesTotal messages: 3
|