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: Exclude conditionaly the supervision
[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
49eaf61
..
8be78af
100644
(file)
--- a/
src/main-afb-daemon.c
+++ b/
src/main-afb-daemon.c
@@
-56,7
+56,9
@@
#include "afb-hook.h"
#include "afb-debug.h"
#include "process-name.h"
#include "afb-hook.h"
#include "afb-debug.h"
#include "process-name.h"
-#include "afb-supervision.h"
+#if defined(WITH_SUPERVISION)
+# include "afb-supervision.h"
+#endif
/*
if SELF_PGROUP == 0 the launched command is the group leader
/*
if SELF_PGROUP == 0 the launched command is the group leader
@@
-577,10
+579,12
@@
static void start(int signum, void *arg)
ERROR("failed to setup monitor");
goto error;
}
ERROR("failed to setup monitor");
goto error;
}
+#if defined(WITH_SUPERVISION)
if (afb_supervision_init() < 0) {
ERROR("failed to setup supervision");
goto error;
}
if (afb_supervision_init() < 0) {
ERROR("failed to setup supervision");
goto error;
}
+#endif
/* install hooks */
if (main_config->tracereq)
/* install hooks */
if (main_config->tracereq)