char err_str[MAX_LOCAL_BUFSZ] = { 0, };
enum hydra_cmd cmd = -1;
int len;
+ int ret;
pid_t pid;
_D("[hydra] ECORE_FD_READ");
} else {
__is_candidate = true;
+ _W("security_manager_prepare_app_candidate ++");
+ ret = security_manager_prepare_app_candidate();
+ _W("security_manager_prepare_app_candidate --");
+ if (ret != SECURITY_MANAGER_SUCCESS) {
+ _E("Failed to prepare app candidate process (%d)", ret);
+ exit(1);
+ }
+
if (sigaction(SIGCHLD, &__prev_sigchld, NULL)) {
_E("[hydra] sigaction failed: %s",
strerror_r(errno, err_str, sizeof(err_str)));
strerror_r(errno, err_str, sizeof(err_str)));
return -1;
} else if (pid == 0) {
+ _W("security_manager_prepare_app_candidate ++");
+ r = security_manager_prepare_app_candidate();
+ _W("security_manager_prepare_app_candidate --");
+ if (r != SECURITY_MANAGER_SUCCESS) {
+ _E("Failed to prepare app candidate process (%d)", r);
+ exit(1);
+ }
+
if (sigaction(SIGCHLD, &__prev_sigchld, NULL)) {
_E("[hydra] sigaction failed: %s",
strerror_r(errno, err_str, sizeof(err_str)));