openwrt/package/utils/busybox
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
..
config
files Disable telnet in favor of passwordless SSH 2015-09-07 19:29:25 +00:00
patches busybox: lock: implement -n "Fail rather than wait" 2015-09-09 20:36:10 +00:00
Config-defaults.in busybox: improve applets & deprecate ifconfig, route 2015-09-08 17:44:10 +00:00
Config.in
convert_defaults.pl
convert_menuconfig.pl
Makefile busybox: fix ip applet and netlink behavior 2015-09-09 10:38:16 +00:00