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