X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=e2e8ce3e46fa00d9028660eb328833ca100c99fc;hb=be63003e3f1841b43614f0e11b0a291e11f1dad1;hp=91c7aae74a592a3896e1a98e6f40aee37f9e5acf;hpb=ec24e3d8779623dbddef97d8b8371609fdf81fa5;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 91c7aae7..e2e8ce3e 100644 --- a/src/main.c +++ b/src/main.c @@ -17,7 +17,6 @@ */ #define _GNU_SOURCE -#define AFB_BINDING_PRAGMA_NO_VERBOSE_MACRO #include #include @@ -284,7 +283,6 @@ static struct afb_hsrv *start_http_server() /*--------------------------------------------------------- | execute_command - | +--------------------------------------------------------- */ static void on_sigchld(int signum, siginfo_t *info, void *uctx) @@ -397,6 +395,7 @@ static int execute_command() { struct sigaction siga; char port[20]; + const char *token; int rc; /* check whether a command is to execute or not */ @@ -427,8 +426,9 @@ static int execute_command() } else { /* instanciate arguments and environment */ - if (instanciate_command_args(port, config->token) >= 0 - && instanciate_environ(port, config->token) >= 0) { + token = afb_session_initial_token(); + if (instanciate_command_args(port, token) >= 0 + && instanciate_environ(port, token) >= 0) { /* run */ if (!SELF_PGROUP) setpgid(0, 0);