
23 Aug
2012
23 Aug
'12
5:33 a.m.
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