sensord: add the checking EAGAIN while the data is sent by socket 64/64864/2
authorkibak.yoon <kibak.yoon@samsung.com>
Tue, 5 Apr 2016 05:25:49 +0000 (14:25 +0900)
committerkibak.yoon <kibak.yoon@samsung.com>
Wed, 6 Apr 2016 03:05:36 +0000 (12:05 +0900)
commit0255f9dbb6d41c174c0a745d84fca2242b3e4619
tree8a41d1a240f9e6080946feb66c069346bb6d9b1d
parentadbf0f1ce69972479ad3e318038eb10023b7f57a
sensord: add the checking EAGAIN while the data is sent by socket

If socket is not available to use it temporarily,
EAGAIN(EWOULDBLOCK) is returned by ::send().
so in order to prevent that data are omitted, retry to send it.

Change-Id: I4b8bcf1fefa1b20e820ec127d24b2e61f6253edf
Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
src/shared/csocket.cpp