]> git.ipfire.org Git - thirdparty/systemd.git/commit
watchdog: ensure configured timeout is used instead of USEC_INFINITY
authorHolger Assmann <h.assmann@pengutronix.de>
Tue, 9 Jan 2024 14:05:19 +0000 (15:05 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 10 Jan 2024 19:14:38 +0000 (19:14 +0000)
commitf681046ededba0cd0b34e96f3f534b0077aa2de8
tree363670e8c43efcc089cfd3b9566aa4787f63a971
parentecb4c5a63e399f33516ba08bb0a4802924dc194d
watchdog: ensure configured timeout is used instead of USEC_INFINITY

In some rare cases, a watchdog driver might neither be able to change
the watchdog timeout value, nor read it from the hardware at runtime.

With an otherwise functional watchdog setup, this constellation worked
until systemd v249. Since then, systemd ends up ignoring the timeout
defined by the system.conf and rather uses USEC_INFINITY. Consequently,
the watchdog is not pinged anymore and eventually resets the system.

We therefore want to ensure that the system keeps running with the
originally configured timeout.
src/shared/watchdog.c