openwrtv3/package/utils
Felix Fietkau 3670f4128d 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
2015-09-09 20:36:10 +00:00
..
admswconfig package: replace ifconfig-usage with ip 2015-09-08 17:44:24 +00:00
busybox busybox: lock: implement -n "Fail rather than wait" 2015-09-09 20:36:10 +00:00
bzip2 bzip2: add host build 2015-07-24 09:11:29 +00:00
e2fsprogs e2fsprogs: add conffiles section 2015-04-02 14:53:12 +00:00
fbtest fbtest: remove bogus #include 2015-03-29 04:28:29 +00:00
fuse fuse: fix exec environment for mount and umount 2015-05-24 17:56:26 +00:00
hostap-utils license info - revert r43155 2014-11-03 09:56:44 +00:00
jsonfilter license info - revert r43155 2014-11-03 09:56:44 +00:00
lua lua: honor LDFLAGS 2015-06-18 10:55:57 +00:00
mdadm license info - revert r43155 2014-11-03 09:56:44 +00:00
mkelfimage license info - revert r43155 2014-11-03 09:56:44 +00:00
nvram nvram: get rid of NVRAM_SPACE 2015-07-08 06:05:43 +00:00
otrx otrx: add extra compilation check before using __BYTE_ORDER 2015-06-22 07:51:00 +00:00
px5g fix subject in generated certificates 2015-01-25 23:33:49 +00:00
px5g-standalone Revert "px5g-standalone: compatibility with fortify-headers" 2015-06-24 18:52:10 +00:00
spidev_test license info - revert r43155 2014-11-03 09:56:44 +00:00
ubi-utils ubi-utils: fix build with gcc5 2015-08-16 20:16:43 +00:00
ugps ugps: update to latest git HEAD 2015-08-17 10:13:03 +00:00
usbmode usbmode: update data files 2015-04-01 13:36:58 +00:00
usbreset license info - revert r43155 2014-11-03 09:56:44 +00:00
usbutils license info - revert r43155 2014-11-03 09:56:44 +00:00
util-linux util-linux: replace spaces with tabs 2015-03-22 12:37:33 +00:00
xfsprogs license info - revert r43155 2014-11-03 09:56:44 +00:00