X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fmain.c;h=6ec392a275d6cb2cec0b5534c46fbc167f93f671;hb=3e56dc3fc7ce31cb932fbd86e78eea02049d0b7e;hp=91c7aae74a592a3896e1a98e6f40aee37f9e5acf;hpb=ec24e3d8779623dbddef97d8b8371609fdf81fa5;p=src%2Fapp-framework-binder.git diff --git a/src/main.c b/src/main.c index 91c7aae7..6ec392a2 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 @@ -397,6 +396,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 +427,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);