Fix the exception 32/211732/2
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 8 Aug 2019 10:52:24 +0000 (19:52 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 8 Aug 2019 11:28:42 +0000 (11:28 +0000)
The errno value can be changed by printing dlog.

Change-Id: Ic3a82c413b9c5bae9fc7a587a8cb4e4538530c05
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/aul_sock.c

index c2e523f..ae0a1cd 100644 (file)
@@ -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);