]> git.ipfire.org Git - thirdparty/systemd.git/commit
udevadm-lock: switch things over to lock_generic_with_timeout()
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Nov 2023 10:08:29 +0000 (11:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 2 Nov 2023 13:19:32 +0000 (14:19 +0100)
commitde7e033286520caa1824b376b1afa143b3d71aa1
tree3b78a1eb2deae58a72ae0e42da83fabaa072f9c6
parente5f1e8b89432724ba5c4772d1394eefe799c5504
udevadm-lock: switch things over to lock_generic_with_timeout()

This replaces the local implementation of a timeout file lock with our
new generic one.

Note that a comment in the old code claimed we couldn't use alarm()-like timeouts,
but htat's not entirely true: we can if we use SIGKILL, and thus know
for sure that the process will be dead in case the timer is hit before
we actually enter the file lock syscall. But we also know it will be
delivered if we hit after.
src/udev/udevadm-lock.c