summaryrefslogtreecommitdiff
path: root/src/core/manager.c
diff options
context:
space:
mode:
authorEvgeny Vereshchagin <evvers@ya.ru>2016-03-28 17:17:32 +0000
committerEvgeny Vereshchagin <evvers@ya.ru>2016-03-28 17:17:32 +0000
commit947292eef49546db1379cfdf3a63bf7396d4a835 (patch)
tree618c232abe0aa08ca2acb02e73d9f87f23198728 /src/core/manager.c
parent09541e49ebd17b41482e447dd8194942f39788c0 (diff)
core: RuntimeWatchdogSec=infinity disables the watchdog logic
Diffstat (limited to 'src/core/manager.c')
-rw-r--r--src/core/manager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index f13e933578..26cb588e30 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -2016,7 +2016,7 @@ int manager_loop(Manager *m) {
while (m->exit_code == MANAGER_OK) {
usec_t wait_usec;
- if (m->runtime_watchdog > 0 && m->running_as == MANAGER_SYSTEM)
+ if (m->runtime_watchdog > 0 && m->runtime_watchdog != USEC_INFINITY && m->running_as == MANAGER_SYSTEM)
watchdog_ping();
if (!ratelimit_test(&rl)) {
@@ -2041,7 +2041,7 @@ int manager_loop(Manager *m) {
continue;
/* Sleep for half the watchdog time */
- if (m->runtime_watchdog > 0 && m->running_as == MANAGER_SYSTEM) {
+ if (m->runtime_watchdog > 0 && m->runtime_watchdog != USEC_INFINITY && m->running_as == MANAGER_SYSTEM) {
wait_usec = m->runtime_watchdog / 2;
if (wait_usec <= 0)
wait_usec = 1;