diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-03-03 09:51:23 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-03-03 10:23:26 +0100 |
commit | d87f24e7f21e581e6b90034ca0df0459a271244a (patch) | |
tree | a778f72dd1d3bb0ca5c2e5cb329cda73087ad699 | |
parent | 5c93c731743492ea5585ed7383adfaaa864fb84c (diff) |
Try to improves the error message after exec
Change-Id: Ibaed600a85ce1b7c3e445ceb39c780e99ca61062
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afm-launch.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |