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