udev: fix some incorrect usages of CLOCK_BOOTTIME (#6198)
authorLennart Poettering <lennart@poettering.net>
Tue, 27 Jun 2017 00:17:39 +0000 (02:17 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 27 Jun 2017 00:17:39 +0000 (20:17 -0400)
commit3285baa85781a906883d991fefc5ec977c6100c4
treeb753abe3fabf098eaad51e8756c90bfe7e2c8a94
parent3e875a71e848b46d019cbda718fb9115583963c2
udev: fix some incorrect usages of CLOCK_BOOTTIME (#6198)

CLOCK_BOOTTIME should only be used if we actually want the clock to
count on while we are suspended, and it is hence not useful for normal
code execution time limits, fix that.

Moreover, a couple of uses were even more broken, as
clock_bottime_or_monotonic() was called where actually
now(clock_boottime_or_monotic()) was supposed to be called. Ouch!

Fixes: #5903
src/udev/udev-event.c
src/udev/udevd.c