From: Jiwoong Im Date: Thu, 10 Nov 2016 06:04:02 +0000 (+0900) Subject: add EINTR exception handling in poll X-Git-Tag: accepted/tizen/3.0/common/20161208.153808^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=65a91c9807b3083dee63f1697639fa7e656e3bb6;p=platform%2Fcore%2Fsystem%2Fbuxton2.git add EINTR exception handling in poll Change-Id: I9bc64c756417f3a4a378356c4ea2b364de2948d7 Signed-off-by: Jiwoong Im --- diff --git a/lib/buxton2.c b/lib/buxton2.c index a221f86..252f3a5 100644 --- a/lib/buxton2.c +++ b/lib/buxton2.c @@ -776,6 +776,11 @@ static int wait_msg(struct buxton_client *client, guint32 msgid) case -1: bxt_err("wait response: poll: fd %d errno %d", client->fd, errno); + if (errno == EINTR) { + clock_gettime(CLOCK_MONOTONIC, &t); + ms = TS_SUB(&to, &t); + continue; + } break; case 0: /* poll timeout, do nothing */