[OpenWrt-Devel] [PATCH] busybox: lock: implement -n "Fail rather than wait"

Bastian Bittorf bittorf at bluebottle.com
Thu Aug 13 08:19:12 EDT 2015

* Alexander Couzens <lynxis at fe80.eu> [06.08.2015 19:05]:
> lock -n is similiar to flock -n. If the lock was already taken,
> fail with exit code = 1 and write error message to stderr.

sorry, forget to ask:
is this "more" atomic than 'mkdir mypath || return'?

bye, bastian
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list