]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/utils: Fix hang in multiprocess_launch()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Feb 2019 14:01:56 +0000 (14:01 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 17 Feb 2019 10:18:48 +0000 (10:18 +0000)
commit0035e8066ecbbff94d6a1994a9f72b1368d660d2
tree67216e65bae75ef371b63cc6b8895ae096e51951
parent95de93988eb725c14102f642ebabff3920ae194f
lib/oe/utils: Fix hang in multiprocess_launch()

If large results values are returned by the subprocesses, we can hit a deadlock
where the subprocess is trying to write data back to the parent, the pipe is full
and the parent is waiting for the child to exit.

Avoid this by calling the update() method which would trigger reading a result
from the child, avoiding the deadlock. The issue is described in
https://bugs.python.org/issue8426

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/utils.py