X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafm-launch.c;h=d80e43b471f8cadded381bce59dbf31382d2fcbd;hb=d87f24e7f21e581e6b90034ca0df0459a271244a;hp=839194340389e7f8e2c1bb9489cfb59246c6f43e;hpb=6f6d04fef9f08d756a37d17333f5b9b9a6b72dd2;p=src%2Fapp-framework-main.git diff --git a/src/afm-launch.c b/src/afm-launch.c index 8391943..d80e43b 100644 --- a/src/afm-launch.c +++ b/src/afm-launch.c @@ -1,5 +1,5 @@ /* - Copyright 2015, 2016 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh author: José Bollo @@ -731,6 +731,9 @@ static pid_t launch( close(rpipe[0]); + /* set name by appid */ + verbose_set_name(desc->appid, 0); + /* avoid set-gid effect */ setresgid(groupid, groupid, groupid); @@ -768,6 +771,7 @@ static pid_t launch( /* executes the process */ rc = execve(args[0], args, env); + access(args[0], X_OK); ERROR("failed to exec master %s: %m", args[0]); _exit(1); return -1;