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-27 17:28:00 +0000 |
commit | fd428a09eeda0199cc1ff53c6ea858cf35d36762 (patch) | |
tree | 33720b4020cc04588160b5f18466910cc3021581 /scripts/qemuimage-testlib | |
parent | 7911ec5de977abb8df859dbe4721ed1aad4b95a1 (diff) | |
download | poky-fd428a09eeda0199cc1ff53c6ea858cf35d36762.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: f1a126f2b0f419b2de573e2367d41d8ccc28b346)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/qemuimage-testlib')
0 files changed, 0 insertions, 0 deletions