]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/service: do not reset watchdong when unit is frozen
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 16 Aug 2025 16:00:37 +0000 (01:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 16 Aug 2025 20:19:26 +0000 (05:19 +0900)
commit0cf84c9a60eb833252c77ab96ef2d4f094f39dc1
tree8fb65899974c773d2bf8a87ecf702a2d7e3a4e9d
parente7d811d6110c1c425697caf8917e4160cfe195ef
core/service: do not reset watchdong when unit is frozen

Even watchdog for a service is stopped when freezing the unit is
requested, sd-notify message WATCHDOG=1 or friends may come after
that due to ordering of event priority. In that case,
service_reset_watchdog() is called for frozen unit and thus previously
watchdog was reenabled.

Follow-up for 25178aadb2bd04ef9e63f48c1ef42fb309f9332e.
Fixes #38551 (the second failure case).
src/core/service.c