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
..
2015-07-24 09:11:29 +00:00
2015-03-29 04:28:29 +00:00
2014-11-03 09:56:44 +00:00
2014-11-03 09:56:44 +00:00
2015-06-18 10:55:57 +00:00
2014-11-03 09:56:44 +00:00
2014-11-03 09:56:44 +00:00
2015-07-08 06:05:43 +00:00
2014-11-03 09:56:44 +00:00
2015-08-16 20:16:43 +00:00
2015-08-17 10:13:03 +00:00
2015-04-01 13:36:58 +00:00
2014-11-03 09:56:44 +00:00
2014-11-03 09:56:44 +00:00
2014-11-03 09:56:44 +00:00