OSDN Git Service

Improve config file sync during configuration save.
authorJacky Cheung <jackyc@google.com>
Wed, 25 May 2016 23:05:57 +0000 (23:05 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Wed, 25 May 2016 23:05:57 +0000 (23:05 +0000)
am: 3114ad623c

* commit '3114ad623ca39bf6cbcee7f4841c00077faafcba':
  Improve config file sync during configuration save.

Change-Id: Ia094c98c636588baf9f43e4bd186492b7c3ce25f

vendor_libs/linux/bt_vendor_linux.c

index eec3e01..41abc8a 100644 (file)
@@ -202,10 +202,10 @@ static int bt_vendor_wait_hcidev(void)
     }
 
     if (fds[0].revents & POLLIN) {
-      n = read(fd, &ev, sizeof(struct mgmt_pkt));
+      OSI_NO_INTR(n = read(fd, &ev, sizeof(struct mgmt_pkt)));
       if (n < 0) {
-        LOG_ERROR(LOG_TAG,
-                  "Error reading control channel");
+        LOG_ERROR(LOG_TAG, "Error reading control channel: %s",
+                  strerror(errno));
         ret = -1;
         break;
       }