diff options
author | Yang Xu <yang.xu@mediatek.com> | 2024-02-02 09:36:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-03-22 16:26:46 +0000 |
commit | 64057e6b153c387eafa0c4c8e0dab2779df45003 (patch) | |
tree | 93f1eaa4162b88d95cc8db73c5677c84ec2fe47c /bitbake/lib/bb/fetch2/git.py | |
parent | 9504df41f9e1c64014436a46abf058c5d3f42d3f (diff) | |
download | poky-64057e6b153c387eafa0c4c8e0dab2779df45003.tar.gz |
bitbake: bitbake-worker: Fix silent hang issue caused by unexpected stdout content
This patch addresses an issue in bitbake-worker where stdout,
reserved for status reporting, is improperly accessed by child processes.
The problem occurs during the execution of parseRecipe,
which calls anonymous functions. If these functions use print-like operations,
they can inadvertently output data to stdout. This unexpected data can cause
the runqueue to hang silently, if the stdout buffer is flushed
before exec_task is executed.
To prevent this, the patch redirects stdout to /dev/null and ensures it is
flushed prior to the execution of exec_task.
(Bitbake rev: 08f3e677d6af27a41a918aaa9da9c1c9b20a0b95)
Signed-off-by: Yang Xu <yang.xu@mediatek.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
0 files changed, 0 insertions, 0 deletions