diff options
author | Lee Chee Yang <chee.yang.lee@intel.com> | 2020-07-23 09:16:13 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-07-31 22:02:52 +0100 |
commit | bb048311202b2de473ded6ac48b2264fec45c8f1 (patch) | |
tree | ee57f6a58d8fd23c236c31ab2d31477c46eb3097 /bitbake | |
parent | 37657703e1ade4088c7c731eec2861f3388cb641 (diff) | |
download | poky-bb048311202b2de473ded6ac48b2264fec45c8f1.tar.gz |
buildhistory: use pid for temporary txt file name
buildhistory create .txt file bh_installed_pkgs.txt and
bh_installed_pkgs_deps.txt while listing down installed package.
These file is later removed in buildhistory_get_installed().
when multiple process runs in parellal there are chances to race for
the file where one process created the file while another task remove
the file right after it.
using different file name for each process should avoid the race. So
add PID to the file name to make it unique.
[yocto #13709]
(From OE-Core rev: af8f5fe82f27702ad727b27daefd5e97d9e64efa)
Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 214d236d93700abffa2d586cc744a00455818fa4)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
0 files changed, 0 insertions, 0 deletions