summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2019-08-08 19:52:24 +0900
committerHwanKyu Jhun <h.jhun@samsung.com>2019-08-08 11:28:42 +0000
commitac3be31aa4c73efbe191ef503a8128f3f4ce3b52 (patch)
tree471b7b339a926000730cbcde5632c1fa72df08bc
parentd65a3e1845be35d1ab1c83308d1d427cfa99778d (diff)
downloadaul-1-ac3be31aa4c73efbe191ef503a8128f3f4ce3b52.tar.gz
aul-1-ac3be31aa4c73efbe191ef503a8128f3f4ce3b52.tar.bz2
aul-1-ac3be31aa4c73efbe191ef503a8128f3f4ce3b52.zip
Fix the exception
The errno value can be changed by printing dlog. Change-Id: Ic3a82c413b9c5bae9fc7a587a8cb4e4538530c05 Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rw-r--r--src/aul_sock.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/aul_sock.c b/src/aul_sock.c
index c2e523f6..ae0a1cd5 100644
--- a/src/aul_sock.c
+++ b/src/aul_sock.c
@@ -935,13 +935,14 @@ API int aul_sock_send_result(int fd, int res)
r = send(fd, &res, sizeof(res), MSG_NOSIGNAL);
if (r < 0) {
- _E("Failed to send result. fd(%d), errno(%d)",
- fd, errno);
if (errno == EPIPE) {
_E("EPIPE error");
close(fd);
return r;
}
+
+ _E("Failed to send result. fd(%d), errno(%d)",
+ fd, errno);
}
close(fd);