From: Hwankyu Jhun Date: Mon, 12 Feb 2018 06:55:43 +0000 (+0900) Subject: Fix aul_rpc_port_prepare_stub API X-Git-Tag: accepted/tizen/unified/20180214.060212~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F28%2F169928%2F1;p=platform%2Fcore%2Fappfw%2Faul-1.git Fix aul_rpc_port_prepare_stub API This change is for getting a result. If a caller process doesn't have permissions to prepare a stub, the caller gets an error from the amd. Change-Id: I7109cabfdbff7760e66b746a2b2b1373246045c1 Signed-off-by: Hwankyu Jhun --- diff --git a/src/aul_rpc_port.c b/src/aul_rpc_port.c index 0fefe02..40a1791 100644 --- a/src/aul_rpc_port.c +++ b/src/aul_rpc_port.c @@ -57,8 +57,8 @@ API int aul_rpc_port_prepare_stub(const char *appid, const char *port_name) } r = aul_sock_send_bundle(AUL_UTIL_PID, getuid(), - RPC_PORT_PREPARE_STUB, b, AUL_SOCK_NOREPLY); - if (r != 0) { + RPC_PORT_PREPARE_STUB, b, AUL_SOCK_QUEUE); + if (r < 0) { _E("Failed to send request(%d:%s)", RPC_PORT_PREPARE_STUB, appid); bundle_free(b);