Try to improves the error message after exec
[src/app-framework-main.git] / src / afm-launch.c
index 9ed5966..d80e43b 100644 (file)
@@ -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;