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