Fix the exeception about terminate requests 38/78338/1 accepted/tizen/common/20160706.141915 accepted/tizen/ivi/20160706.014519 accepted/tizen/mobile/20160706.014428 accepted/tizen/tv/20160706.014443 accepted/tizen/wearable/20160706.014459 submit/tizen/20160705.222911
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Jul 2016 06:56:02 +0000 (15:56 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Jul 2016 06:56:02 +0000 (15:56 +0900)
Change-Id: Ie818da1856af42972791626bbdfaa29517add0ba
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/launch.c

index ca2e853..7d9e914 100644 (file)
@@ -691,6 +691,9 @@ API int aul_terminate_pid_for_uid(int pid, uid_t uid)
        snprintf(pid_str, sizeof(pid_str), "%d", pid);
        ret = app_request_to_launchpad_for_uid(APP_TERM_BY_PID,
                        pid_str, NULL, uid);
+       if (ret == pid)
+               ret = AUL_R_OK;
+
        return ret;
 }
 
@@ -704,6 +707,9 @@ API int aul_terminate_bgapp_pid(int pid)
 
        snprintf(pid_str, sizeof(pid_str), "%d", pid);
        ret = app_request_to_launchpad(APP_TERM_BGAPP_BY_PID, pid_str, NULL);
+       if (ret == pid)
+               ret = AUL_R_OK;
+
        return ret;
 }