[OpenWrt-Devel] [PATCH v2] busybox: lock: implement -n "Fail rather than wait"
bittorf at bluebottle.com
Thu Aug 13 06:31:56 EDT 2015
* Alexander Couzens <lynxis at fe80.eu> [07.08.2015 20:48]:
> lock -n is similiar to flock -n. If the lock was already taken,
> fail with exit code = 1 and write error message to stderr.
internally we are using 'mkdir' which is called via a 'lock()' function:
if mkdir /tmp/lock_$reason; then
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel