Code Review
/
src
/
app-framework-binder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
watchdog: Isolate the watchdog from jobs
[src/app-framework-binder.git]
/
src
/
main-afb-daemon.c
diff --git
a/src/main-afb-daemon.c
b/src/main-afb-daemon.c
index
0a8e018
..
beb08d3
100644
(file)
--- 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 "wrap-json.h"
#include "jobs.h"
#include "sig-monitor.h"
+#include "watchdog.h"
#if !defined(DEFAULT_BINDER_INTERFACE)
# define DEFAULT_BINDER_INTERFACE NULL
#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");
/* 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);
return;
error:
exit(1);