diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-06-14 15:00:47 +0200 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-07-12 05:13:59 -1000 |
commit | e146653c21d6c681acd89c37bc66aa4255d64020 (patch) | |
tree | 390a98ea12f0d3f345f4944c5e2c85832ca39ba9 /meta/lib/oeqa/selftest/cases | |
parent | b30e81df2b71e7fdf23f7a4a19813fb6d512f2cd (diff) | |
download | poky-e146653c21d6c681acd89c37bc66aa4255d64020.tar.gz |
scripts/runqemu: allocate unfsd ports in a way that doesn't race or clash with unrelated processes
There is already a neat check_free_port() function for finding an available port
atomically, so use that and make two additional tweaks:
- no need to allocate two separate ports; per unfsd documentation they can be the same
- move lockfile release until after unfsd has been shut down and the port(s) used has been freed
[YOCTO #15077]
(From OE-Core rev: 816d12f125974fc064d17c735b7769f7a9744597)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit dee96e82fb04ea99ecd6c25513c7bd368df3bd37)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
0 files changed, 0 insertions, 0 deletions