use select.poll() instead of select.select() for file descriptors

see: https://github.com/ansible/tower/issues/861
see: https://github.com/pexpect/pexpect/pull/474
This commit is contained in:
Ryan Petrello
2018-04-25 16:28:51 -04:00
parent 5d82ee5a27
commit f0d3713e99
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ def run_pexpect(args, cwd, env, logfile,
child = pexpect.spawn(
args[0], args[1:], cwd=cwd, env=env, ignore_sighup=True,
encoding='utf-8', echo=False,
encoding='utf-8', echo=False, use_poll=True
)
child.logfile_read = logfile
canceled = False