X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain-afb-daemon.c;h=8be78af6490947e33b838b406d1fbcec50c1282d;hb=44b24775deb71c45c474ff97553a1514674bf2ad;hp=49eaf61cecbdb68969805053bff2e7e4b407b283;hpb=525e9eaa644ca92fad23adfbb7c3119ae8b57a30;p=src%2Fapp-framework-binder.git diff --git a/src/main-afb-daemon.c b/src/main-afb-daemon.c index 49eaf61c..8be78af6 100644 --- 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-supervision.h" +#if defined(WITH_SUPERVISION) +# include "afb-supervision.h" +#endif /* 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; } +#if defined(WITH_SUPERVISION) if (afb_supervision_init() < 0) { ERROR("failed to setup supervision"); goto error; } +#endif /* install hooks */ if (main_config->tracereq)