X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwatchdog.c;h=92144ba0525d271e808a7b35e44dc22b1b780cbb;hb=f282b0a0795e27c3b0c40e213f6bef1eb602fdc7;hp=f9afd640318ff82f5f5f614d7dc7fb935bd0705e;hpb=7b9fa0ade3a8847c779f46fe50c97eed86917abc;p=src%2Fapp-framework-binder.git diff --git a/src/watchdog.c b/src/watchdog.c index f9afd640..92144ba0 100644 --- a/src/watchdog.c +++ b/src/watchdog.c @@ -27,12 +27,15 @@ #include #include "jobs.h" +#include "systemd.h" int watchdog_activate() { /* set the watchdog */ - if (sd_watchdog_enabled(0, NULL)) - sd_event_set_watchdog(jobs_get_sd_event(), 1); + if (sd_watchdog_enabled(0, NULL)) { + jobs_acquire_event_manager(); + sd_event_set_watchdog(systemd_get_event_loop(), 1); + } return 0; }