static void __send_result_to_caller(int clifd, int ret)
{
int res;
+ int count = 0;
+ char path[PATH_MAX];
_W("Check app launching");
return;
}
+ snprintf(path, sizeof(path), "/run/aul/apps/%d/%d/.app-sock",
+ getuid(), ret);
+ _D("socket path: %s", path);
+ do {
+ if (access(path, F_OK) == 0) {
+ _D("%s exists", path);
+ break;
+ }
+
+ _D("-- now wait socket creation --");
+ usleep(50 * 1000);
+ count++;
+ } while (count < 20);
+
res = _proc_check_cmdline_bypid(ret);
if (res < 0) {
_E("The app process might be terminated "
PERF("fork done");
_D("lock up test log(no error): fork done");
+ if (__stdout_stderr_redirection(__get_caller_pid(kb)))
+ _E("__stdout_stderr_redirection() failed");
+
_signal_unblock_sigchld();
_signal_fini();
_close_all_fds();
_delete_sock_path(getpid(), getuid());
- if (__stdout_stderr_redirection(__get_caller_pid(kb)))
- _E("__stdout_stderr_redirection() failed");
-
PERF("prepare exec - fisrt done");
_D("lock up test log(no error): prepare exec - first done");