summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSemun Lee <sm79.lee@samsung.com>2016-12-28 19:15:16 +0900
committerSemun Lee <sm79.lee@samsung.com>2016-12-28 19:15:16 +0900
commit6f59e47b0770f4ce5cd0a3ef3475d00b4047b4e9 (patch)
treefca7fccf7aa153419b315e4728d922cf406b60dc
parent7f7bbff6dc60f4a92997a71fbfd9166539058e8b (diff)
downloadlaunchpad-6f59e47b0770f4ce5cd0a3ef3475d00b4047b4e9.tar.gz
launchpad-6f59e47b0770f4ce5cd0a3ef3475d00b4047b4e9.tar.bz2
launchpad-6f59e47b0770f4ce5cd0a3ef3475d00b4047b4e9.zip
We don't need to wait response from amd. It may lead deadlock between launchpad and amd. Change-Id: I75767b69d404fb28ce0059385026c5107a13cc71 Signed-off-by: Semun Lee <sm79.lee@samsung.com>
-rw-r--r--src/launchpad_common.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/launchpad_common.c b/src/launchpad_common.c
index a0f6c3b..a440731 100644
--- a/src/launchpad_common.c
+++ b/src/launchpad_common.c
@@ -217,7 +217,6 @@ int _send_cmd_to_amd(int cmd)
struct sockaddr_un addr = {0,};
int fd;
int ret;
- int res;
int retry = CONNECT_RETRY_COUNT;
app_pkt_t pkt = {0,};
@@ -258,24 +257,8 @@ int _send_cmd_to_amd(int cmd)
return -ECOMM;
}
-retry_recv:
- ret = recv(fd, &res, sizeof(int), 0);
- if (ret <= 0) {
- if (errno == EAGAIN) {
- _E("recv timeout");
- res = -EAGAIN;
- } else if (errno == EINTR) {
- _D("Interrupted system call");
- goto retry_recv;
- } else {
- _E("recv error(%d)", errno);
- res = -ECOMM;
- }
- }
-
close(fd);
-
- return res;
+ return 0;
}
int _create_server_sock(const char *name)