Add an exception handling about recvmsg() 34/261534/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Jul 2021 01:53:47 +0000 (10:53 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 21 Jul 2021 01:59:56 +0000 (10:59 +0900)
commite2004809f8be5ebaf8c1a1063f053d554e0bde98
tree293af4e1daa43770fc30b77743d1ff76382c45ad
parent6d97b238590c03cc3c0f00a668198f6d89d0a30d
Add an exception handling about recvmsg()

When calling the recvmsg(), the function returns a negative error value
immediately if the receive is interrupted by delivering of a signal.
This patch adds an exception handling for the error case.
If the errno is EINTR, calling the recvmsg() is tried for receiving the message
from the socket fd again.

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