X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafm-launch.c;h=d80e43b471f8cadded381bce59dbf31382d2fcbd;hb=d87f24e7f21e581e6b90034ca0df0459a271244a;hp=bb528e5885ddeda8d961c572551ec27da72d5bc3;hpb=3a6e947bef1b2942e24d2fdee1a76dbf3305b508;p=src%2Fapp-framework-main.git diff --git a/src/afm-launch.c b/src/afm-launch.c index bb528e5..d80e43b 100644 --- a/src/afm-launch.c +++ b/src/afm-launch.c @@ -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;