]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/service.c
service: when starting a service make a copy of the watchdog timeout and use that 10508/head
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Oct 2018 17:04:41 +0000 (19:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 26 Oct 2018 11:00:04 +0000 (13:00 +0200)
commitaa8c4bbf6a9d20576bd65f6b27b769c08be33e73
tree0ea12310a188d4da9f40cca5f55d6705a85651aa
parent34b3f625f23f1185d673128254540e8c83be4117
service: when starting a service make a copy of the watchdog timeout and use that

When we start a service process we pass the selected watchdog timeout to
it with the $WATCHDOG_USEC environment variable. If the unit file is
reconfigured later, we need to make sure to continue to honour the
original timeout, i.e. watch $WATCHDOG_USEC was set to, otherwise we'll
expect the ping at a different time as the service process is sending it
to us.

Hence, whenever we start a unit, save the watchdog timeout, and stick to
that for everything we do.

Fixes: #9467
src/core/service.c
src/core/service.h