]> code.ossystems Code Review - openembedded-core.git/commit
poky-qemu-internal: implement file locking in bash
authorScott Garman <scott.a.garman@intel.com>
Fri, 8 Oct 2010 21:40:47 +0000 (14:40 -0700)
committerScott Garman <scott.a.garman@intel.com>
Fri, 8 Oct 2010 21:48:20 +0000 (14:48 -0700)
commitc805a6ed281279ef0ccc4e6e084d52a725260e09
tree89868cd32164b13e7e76fb42dac7b735358d2248
parent7cd824a5388f7284a1252e9f61af2c88d26ca163
poky-qemu-internal: implement file locking in bash

There does not appear to be a universal lockfile utility that
meets our needs. For example:

* 'lockfile' is part of the procmail pacakge in Ubuntu, a
  requirement we don't want to impose on our users
* lockfile-[create|remove] from the Ubuntu lockfile-progs
  package does not appear to be available in Fedora/openSUSE

So, the most portable way to do this is just to implement it
in bash. The likelihood of race conditions is minimal for
what we need this for.

Signed-off-by: Scott Garman <scott.a.garman@intel.com>
scripts/poky-qemu-internal