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