diff options
Diffstat (limited to 'src/main-afb-daemon.c')
-rw-r--r-- | src/main-afb-daemon.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index 0a8e0186..beb08d38 100644 --- a/src/main-afb-daemon.c +++ b/src/main-afb-daemon.c @@ -66,6 +66,7 @@ #include "wrap-json.h" #include "jobs.h" #include "sig-monitor.h" +#include "watchdog.h" #if !defined(DEFAULT_BINDER_INTERFACE) # define DEFAULT_BINDER_INTERFACE NULL @@ -861,6 +862,13 @@ static void start(int signum, void *arg) /* ready */ sd_notify(1, "READY=1"); + + /* activate the watchdog */ +#if HAS_WATCHDOG + if (watchdog_activate() < 0) + ERROR("can't start the watchdog"); +#endif + return; error: exit(1); |