X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain-afs-supervisor.c;h=6b79c9c1d41b6fe9562a4baf22fa7e1a8175459c;hb=418ba126a955ee38804152c6c905ff200bbc1a92;hp=b4250831e4cf2eb429ca591a544f32ba9a3dd6dc;hpb=bf7fe722bcfc23dfc38d5adc765eadc3316b70a2;p=src%2Fapp-framework-binder.git diff --git a/src/main-afs-supervisor.c b/src/main-afs-supervisor.c index b4250831..6b79c9c1 100644 --- a/src/main-afs-supervisor.c +++ b/src/main-afs-supervisor.c @@ -39,6 +39,7 @@ #include "verbose.h" #include "jobs.h" #include "process-name.h" +#include "watchdog.h" #if !defined(DEFAULT_SUPERVISOR_INTERFACE) # define DEFAULT_SUPERVISOR_INTERFACE NULL @@ -191,6 +192,14 @@ 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 + + /* discover binders */ afs_supervisor_discover(); return; error: