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
supervision: Add supervision and supervisor
[src/app-framework-binder.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
b8bad94
..
c05556d
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-54,6
+54,7
@@
#include "sd-fds.h"
#include "afb-debug.h"
#include "process-name.h"
#include "sd-fds.h"
#include "afb-debug.h"
#include "process-name.h"
+#include "afb-supervision.h"
/*
if SELF_PGROUP == 0 the launched command is the group leader
/*
if SELF_PGROUP == 0 the launched command is the group leader
@@
-571,6
+572,10
@@
static void start(int signum, void *arg)
ERROR("failed to setup monitor");
goto error;
}
ERROR("failed to setup monitor");
goto error;
}
+ if (afb_supervision_init() < 0) {
+ ERROR("failed to setup supervision");
+ goto error;
+ }
/* install hooks */
if (config->tracereq)
/* install hooks */
if (config->tracereq)