After this patch is applied, app-installer uses
aul_app_get_status_for_uid() intead of aul_app_is_running_for_uid()
to check whether an application is running or NOT.
When an application is dying, aul_app_is_running_for_uid() returns
false.
Change-Id: I1af3904d524ee8ac9a9414a79e55f7d86aefd7e2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
namespace {
bool CheckAndKill(const std::string& appid, uid_t uid) {
- int ret = aul_app_is_running_for_uid(appid.c_str(), uid);
- if (ret == 0)
+ int ret = aul_app_get_status_for_uid(appid.c_str(), uid);
+ if (ret < 0)
return true;
int pid = aul_app_get_pid_for_uid(appid.c_str(), uid);