diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-20 22:58:30 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-03-20 23:09:45 +0000 |
commit | 9ffee9add2d0380f4025e7a678a166f25a7d659e (patch) | |
tree | 17931328b7439149c520bc03b2a41d915001aec8 /meta-hob/COPYING.MIT | |
parent | ecb30a910b8c2f3d39ab4d3bf5f3eb1898097b76 (diff) | |
download | poky-9ffee9add2d0380f4025e7a678a166f25a7d659e.tar.gz |
scripts/runqemu-internal: Fix lock races
There are two problems here. Firstly the grep command is unanchored so
pid 345 will match against 12345 and so on.
The second issue is that there are several context switched between attempting
the lock and then writing the pid to it.
Between the two issues, there were issues appearing on the autobuilder due
to these conflicts. This patch replaces the mechanism with flock on fd 8
which should be a safer mechanism to use.
(From OE-Core rev: 98471be6e58451016200cfd10e64e8ae6266c801)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-hob/COPYING.MIT')
0 files changed, 0 insertions, 0 deletions