commit | ce996f176f48448bdf3fb5959c880a8b9f6c7536 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Fri Mar 01 13:14:24 2019 -0800 |
committer | Matthew Maurer <mmaurer@google.com> | Fri Mar 01 13:14:24 2019 -0800 |
tree | 8ff2f693b714895928f09cee36e985451573ad6d | |
parent | e6b0d9ee54f8d9e4f998d3a23cc10c522d4663f9 [diff] |
Use O_NONBLOCK when opening command pipe If qemu_proc.poll() returns None, then QEMU dies, then we open the command pipe, the open() call will hang waiting for the other side to pick up. By using O_NONBLOCK, we can error out if the other side of the pipe is not there (e.g. QEMU exited between poll() and open). Bug: 126917782 Change-Id: If239ba084a6478ebdc9b1913c2831790dafd1af1