watchdog: reset last ping timestamp when opening watchdog
authorLennart Poettering <lennart@poettering.net>
Wed, 29 May 2024 15:38:36 +0000 (17:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 29 May 2024 15:42:02 +0000 (17:42 +0200)
commitbbd3832e6bac0c945cfb2632b872e4bccb111f2b
tree4ecdb13970ba7b1646d89c4e0d24cb5e830b0e3d
parente7f00537872c7a68fb966fd928790374beeb406e
watchdog: reset last ping timestamp when opening watchdog

When we open a watchdog fresh we have never pinged it, hence reset the
ping timestamp explicitly, so that it is not only reset the first time
we open the device, but all times.
src/shared/watchdog.c