From 87389195a2713370c51616836e9ad25918aef492 Mon Sep 17 00:00:00 2001 From: Sangyoon Jang Date: Wed, 12 Oct 2016 15:28:54 +0900 Subject: [PATCH] Get kill/check result from server instead of tmp file Submit together: - https://review.tizen.org/gerrit/91895 - https://review.tizen.org/gerrit/91896 Change-Id: Ifda21b50828a13290163b7cc598eb6d40a52e396 Signed-off-by: Sangyoon Jang --- client/src/pkgmgr.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/pkgmgr.c b/client/src/pkgmgr.c index 5207fb8..f91df57 100644 --- a/client/src/pkgmgr.c +++ b/client/src/pkgmgr.c @@ -295,15 +295,13 @@ static int __check_app_process(pkgmgr_request_service_type service_type, return ret; } - g_variant_get(result, "(i)", &ret); + g_variant_get(result, "(ii)", &ret, &pid); g_variant_unref(result); if (ret != PKGMGR_R_OK) { ERR("request failed, ret=%d", ret); return ret; } - /* FIXME */ - pid = __sync_process(pkgid); *(int *)data = pid; pkgmgrinfo_pkginfo_destroy_pkginfo(handle); -- 2.7.4