168
162
command, shell=True, stdin=subprocess.PIPE,
169
163
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
171
165
# XXX: horribly inefficient, not to mention ugly.
172
166
# Start a thread for each of stdin/out/err, and relay bytes from
173
167
# the subprocess to channel and vice versa.