constexpr const char kRunAulDaemonsPath[] = "/run/aul/daemons/";
constexpr const char kLaunchpadProcessPoolSock[] =
"@org.tizen.appfw.launchpad-process-pool";
+constexpr const char kLaunchpadProcessPoolSockReady[] =
+ ".launchpad-process-pool-sock";
const int kPadCmdKillLoader = 19;
const int kPadCmdRestartLoader = 20;
constexpr const int TEP_ISMOUNT_MAX_RETRY_CNT = 20;
}
//TODO(Abstract Socket Issue): file-based socket check
- std::string endpoint = kRunAulDaemonsPath + std::to_string(uid) + "/" +
- std::string(kLaunchpadProcessPoolSock);
- if (!std::filesystem::exists(endpoint)) {
+ std::string sock_ready = kRunAulDaemonsPath + std::to_string(uid) + "/" +
+ std::string(kLaunchpadProcessPoolSockReady);
+ if (access(sock_ready.c_str(), F_OK) != 0) {
_E("launchpad socket is not prepared");
return AUL_R_ENOENT;
}
}
//TODO(Abstract Socket Issue): file-based socket check
- std::string endpoint = kRunAulDaemonsPath + std::to_string(uid) + "/" +
- std::string(kLaunchpadProcessPoolSock);
- if (!std::filesystem::exists(endpoint)) {
+ std::string sock_ready = kRunAulDaemonsPath + std::to_string(uid) + "/" +
+ std::string(kLaunchpadProcessPoolSockReady);
+ if (access(sock_ready.c_str(), F_OK) != 0) {
_E("launchpad socket is not prepared");
return AUL_R_ENOENT;
}