]> git.ipfire.org Git - thirdparty/util-linux.git/commit
flock: improve timeout handling
authorSami Kerola <kerolasa@iki.fi>
Mon, 9 Feb 2015 23:18:09 +0000 (23:18 +0000)
committerKarel Zak <kzak@redhat.com>
Thu, 5 Mar 2015 09:31:01 +0000 (10:31 +0100)
commit378543e13f93c522b976efddd1610a19a6601b1c
tree38467867c9467eb6cc23b91516be9364ef74bb7c
parent59dc9f28b520561de5194d1217a77080a349e133
flock: improve timeout handling

Signal ALRM raised by the timer, and the timer only, will be considered
as a timeout criteria.

Secondly time interval is made to use monotonic clock.  Documentation of
ITIMER_REAL is unclear whether that time is affected various sources of
clock skew, or does it even tick when system is suspended.

Reviewed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
configure.ac
include/Makemodule.am
include/monotonic.h
include/timer.h [deleted file]
lib/monotonic.c
sys-utils/Makemodule.am
sys-utils/flock.c