]> code.ossystems Code Review - openembedded-core.git/commit
scripts/runqemu: Improve lockfile handling for python with close_fd=True
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Nov 2018 17:31:39 +0000 (17:31 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Dec 2018 10:14:05 +0000 (10:14 +0000)
commit1d03e0d54863124c5a65b59ecdc76dbac13d312a
treeff2f83b9a1ab9087119032daf9b5e8897413370d
parent2728394ed75526f338cc9cb6bc62fb0ed6dc605f
scripts/runqemu: Improve lockfile handling for python with close_fd=True

On python versions with close_fds=True (python 3.2 onwards), the tap
device lockfile isn't passed to the child process.

Since this guards against use of an active interface, we really want this
here, so pass it in pass_fds. This means if the parent exits early, the child
still holds the lock, avoiding messages like:

runqemu - ERROR - Failed to run qemu: qemu-system-x86_64: could not configure /dev/net/tun (tap0): Device or resource busy

(From OE-Core rev: 17a0a067d597c445c5892ff9914e91a2187f7e09)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/runqemu