]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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>
Wed, 28 Nov 2018 22:23:49 +0000 (22:23 +0000)
commit41975aa977f7aa387851aa5e4f584db749a27736
tree93a2841f5935bb8fac92304876638ccdb02fc35f
parent85cf23230ddba1b7119f008e4b5b51ee7ee40b80
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

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