diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-09-09 20:36:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-09-09 20:36:10 +0000 |
commit | 3670f4128d9d65b56397c5b86bfcc23a69cdba3d (patch) | |
tree | dd1015dcfc5fdf622b6034acd9efa1f38c8a3d56 /toolchain/info.mk | |
parent | 5fcafa319d25ca79638e7d705cc4fd097b8bf33b (diff) | |
download | master-31e0f0ae-3670f4128d9d65b56397c5b86bfcc23a69cdba3d.tar.gz master-31e0f0ae-3670f4128d9d65b56397c5b86bfcc23a69cdba3d.tar.bz2 master-31e0f0ae-3670f4128d9d65b56397c5b86bfcc23a69cdba3d.zip |
busybox: lock: implement -n "Fail rather than wait"
lock -n is similiar to flock -n. If the lock was already taken,
fail with exit code = 1 and write error message to stderr.
example:
if ! lock -n /tmp/foo ; then
echo lock exits.
else
echo lock was free. But is locked now.
fi
> lock was free. But is locked now.
> lock exists.
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
SVN-Revision: 46836
Diffstat (limited to 'toolchain/info.mk')
0 files changed, 0 insertions, 0 deletions