From: Hwankyu Jhun Date: Mon, 15 Nov 2021 23:21:15 +0000 (+0900) Subject: Fix fake launch app async X-Git-Tag: submit/tizen/20211115.233417~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd93b9ad6a90653165f47d2e212fa5aad8cd1f3f;p=platform%2Fcore%2Fappfw%2Famd.git Fix fake launch app async If sending the request is successful, the __fake_launch_app_async() function has to return the process ID. After sending the launch request, AMD saves the process information on the pending list until the socket of the launched application is ready. Change-Id: I606ce5b59caa2ed01a2229433bd8703a21855cad Signed-off-by: Hwankyu Jhun --- diff --git a/src/lib/amd_launch.c b/src/lib/amd_launch.c index e3793831..b6e94d82 100644 --- a/src/lib/amd_launch.c +++ b/src/lib/amd_launch.c @@ -823,14 +823,13 @@ static int __fake_launch_app_async(int cmd, int pid, bundle *kb, request_h req) int ret; ret = __send_app_request(pid, target_uid, cmd, -1, kb); - if (ret < 0) { + if (ret < 0) _E("Failed to send request. pid(%d), cmd(%d)", pid, cmd); - _request_send_result(req, ret); - } else { - _request_send_result(req, pid); - } + else + ret = pid; - _D("cmd(%d), pid(%d)", cmd, pid); + _request_send_result(req, ret); + _D("cmd(%d), pid(%d), result(%d)", cmd, pid, ret); return ret; }