add EINTR exception handling in poll 63/96763/3 accepted/tizen/3.0/common/20161208.153808 accepted/tizen/3.0/ivi/20161208.063757 accepted/tizen/3.0/mobile/20161208.063729 accepted/tizen/3.0/tv/20161208.063741 accepted/tizen/3.0/wearable/20161208.063750 submit/tizen_3.0/20161208.010952
authorJiwoong Im <jiwoong.im@samsung.com>
Thu, 10 Nov 2016 06:04:02 +0000 (15:04 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Thu, 8 Dec 2016 01:53:53 +0000 (10:53 +0900)
Change-Id: I9bc64c756417f3a4a378356c4ea2b364de2948d7
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
lib/buxton2.c

index a221f86..252f3a5 100644 (file)
@@ -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 */