projects
/
platform
/
core
/
appfw
/
amd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ff5b2a
)
Fix fake launch app async
85/266585/1
author
Hwankyu Jhun
<h.jhun@samsung.com>
Mon, 15 Nov 2021 23:21:15 +0000
(08:21 +0900)
committer
Hwankyu Jhun
<h.jhun@samsung.com>
Mon, 15 Nov 2021 23:23:54 +0000
(08:23 +0900)
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 <h.jhun@samsung.com>
src/lib/amd_launch.c
patch
|
blob
|
history
diff --git
a/src/lib/amd_launch.c
b/src/lib/amd_launch.c
index
e379383
..
b6e94d8
100644
(file)
--- 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;
}