From d493a4e0d09b7d1a9a5f5306dd89697056bac9a3 Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Mon, 21 May 2018 12:19:12 -0400 Subject: [PATCH] revert expect(use_poll=True) due to a bug that causes `os.read()` hangs There's a bug in the implementation in pexpect: pexpect/pexpect#491 Issues that could be related to this: ansible/awx#1870 ansible/awx#1840 Rolling this back will cause #861 to no longer be "fixed". We'll have to solve it another way, or wait for pexpect to fix the poll bug. --- awx/main/expect/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/expect/run.py b/awx/main/expect/run.py index 0c8881a85c..ed26464c8e 100755 --- a/awx/main/expect/run.py +++ b/awx/main/expect/run.py @@ -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, use_poll=True + encoding='utf-8', echo=False ) child.logfile_read = logfile canceled = False