Get kill/check result from server instead of tmp file 96/91896/4 accepted/tizen/3.0/ivi/20161028.122943 accepted/tizen/3.0/mobile/20161028.122217 accepted/tizen/3.0/tv/20161028.122515 accepted/tizen/3.0/wearable/20161028.122731 accepted/tizen/common/20161012.154706 accepted/tizen/common/20161013.155649 accepted/tizen/ivi/20161014.022155 accepted/tizen/ivi/20161014.074159 accepted/tizen/mobile/20161014.022225 accepted/tizen/mobile/20161014.074056 accepted/tizen/tv/20161014.022141 accepted/tizen/tv/20161014.074119 accepted/tizen/wearable/20161014.022124 accepted/tizen/wearable/20161014.074139 submit/tizen/20161012.064511 submit/tizen/20161012.122424 submit/tizen_3.0/20161028.062323 submit/tizen_3.0/20161028.082323 submit/tizen_3.0_common/20161104.104000
authorSangyoon Jang <s89.jang@samsung.com>
Wed, 12 Oct 2016 06:28:54 +0000 (15:28 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Wed, 12 Oct 2016 07:39:43 +0000 (16:39 +0900)
Submit together:
 - https://review.tizen.org/gerrit/91895
 - https://review.tizen.org/gerrit/91896

Change-Id: Ifda21b50828a13290163b7cc598eb6d40a52e396
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
client/src/pkgmgr.c

index 5207fb8..f91df57 100644 (file)
@@ -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);