projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI: add checks for basic compatibility with muon
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
20d0e29
..
8a4c1f3
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-56,6
+56,7
@@
#include "version.h"
#include "random.h"
#include "sandbox.h"
#include "version.h"
#include "random.h"
#include "sandbox.h"
+#include "watchdog.h"
/* If nonzero, display usage information and exit. */
static bool show_help = false;
/* If nonzero, display usage information and exit. */
static bool show_help = false;
@@
-694,8
+695,16
@@
int main2(int argc, char **argv) {
try_outgoing_connections();
try_outgoing_connections();
+#ifdef HAVE_WATCHDOG
+ watchdog_start();
+#endif
+
status = main_loop();
status = main_loop();
+#ifdef HAVE_WATCHDOG
+ watchdog_stop();
+#endif
+
/* Shutdown properly. */
end:
/* Shutdown properly. */
end: