From: José Bollo Date: Fri, 3 Mar 2017 08:51:23 +0000 (+0100) Subject: Try to improves the error message after exec X-Git-Tag: x-last-without-systemd~9 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=src%2Fapp-framework-main.git;a=commitdiff_plain;h=d87f24e7f21e581e6b90034ca0df0459a271244a Try to improves the error message after exec Change-Id: Ibaed600a85ce1b7c3e445ceb39c780e99ca61062 Signed-off-by: José Bollo --- diff --git a/src/afm-launch.c b/src/afm-launch.c index 9ed5966..d80e43b 100644 --- a/src/afm-launch.c +++ b/src/afm-launch.c @@ -771,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;