]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
scripts/runqemu: allocate unfsd ports in a way that doesn't race or clash with unrela...
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 14 Jun 2023 13:00:47 +0000 (15:00 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Jun 2023 07:00:37 +0000 (08:00 +0100)
commitdee96e82fb04ea99ecd6c25513c7bd368df3bd37
tree3e9a671ff8c150557fb19ab9615a8d66947dd117
parent004d6bcb067ecf1d796801fa43a98820c4efd3c7
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]

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu