commit | 4c64983051bd720c3e18236fccf115c8fc0d6ea1 | [log] [tgz] |
---|---|---|
author | James E. Blair <jeblair@redhat.com> | Thu Jun 02 14:31:33 2016 -0700 |
committer | James E. Blair <jeblair@redhat.com> | Thu Jun 02 21:53:56 2016 -0700 |
tree | 2ec1211853094b7456afeae9ce0c534d6ba802be | |
parent | 8fc762bc5e75931f18188605891bf4180db3eb9c [diff] |
Ansible launcher: Write console in thread Read the console stream from the pipe and write it to a file from within another thread. This way the main thread can wait on the subprocess, and if it exits for any reason, exit the ansible task. This corrects a problem where our immediate child would exit, but a grandchild may hold stdout open, preventing us from reaching the point at which we call wait() on our child. Change-Id: If983e5b8e0ef27c63490e4b9a135f13a15bf5ae3 Story: #2000619