diff options
| author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-06-14 15:00:47 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-06-15 08:00:41 +0100 |
| commit | 66b7727577f864d1725e14f5e953be114360fea3 (patch) | |
| tree | 228d51b96873d5a7146793b528e16d7ecfeca90d /scripts/lib/wic/pluginbase.py | |
| parent | 5776d07bddc051ce3e9e73ace26af924f426b51f (diff) | |
| download | poky-66b7727577f864d1725e14f5e953be114360fea3.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: dee96e82fb04ea99ecd6c25513c7bd368df3bd37)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic/pluginbase.py')
0 files changed, 0 insertions, 0 deletions
