[U-Boot] [PATCH 05/12] tools/env: Serialize calls to fw_*env

Mike Frysinger vapier at gentoo.org
Thu Aug 23 05:33:47 CEST 2012


On Friday 17 August 2012 16:49:39 Joe Hershberger wrote:
> Use a lock file at /var/lock/fw_printenv.lock.

the lock should be per-MTD, not per-system.

> +	if (-1 == flock(lockfd, LOCK_EX)) {

i guess flock() on the fd returned from the mtd device itself doesn't work ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120822/6ecf0b7f/attachment.pgp>


More information about the U-Boot mailing list