Descriptiongosshnew/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 4b93e466ea9d https://code.google.com/p/gosshnew #Patch Set 3 : diff -r 4b93e466ea9d https://code.google.com/p/gosshnew #
MessagesTotal messages: 5
|