From: Hwankyu Jhun Date: Mon, 15 Nov 2021 02:12:14 +0000 (+0900) Subject: Fix wrong exception handling of async request X-Git-Tag: submit/tizen/20211115.064922~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8113ac4686f44cb4b13804d64ddde1cf4a55975d;p=platform%2Fcore%2Fappfw%2Famd.git Fix wrong exception handling of async request If the return value of the __send_app_request() function is zero, AMD should send the result to the caller with the process ID. Change-Id: Iab0eada715555c2a47474d05ee6acbea0fddafa4 Signed-off-by: Hwankyu Jhun --- diff --git a/src/lib/amd_launch.c b/src/lib/amd_launch.c index 295cb345..e3793831 100644 --- a/src/lib/amd_launch.c +++ b/src/lib/amd_launch.c @@ -823,10 +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); + } - _request_send_result(req, ret); _D("cmd(%d), pid(%d)", cmd, pid); return ret; }