Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86098af4 authored by Myles Watson's avatar Myles Watson
Browse files

Revert "HciHalTest: Handle EINTR when reading"

This reverts commit 992976c7.

Reason for revert: EINTR shouldn't happen with a local socket.  This is overkill.

Bug: 168760472
Change-Id: I5dc8e6eb9ee7c360e802452a1ffe804d65f20561
Tag: #gd-refactor
Test: atest bluetooth_test_gd
parent 992976c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -241,7 +241,7 @@ size_t read_with_retry(int socket, uint8_t* data, size_t length) {
  size_t bytes_read = 0;
  ssize_t bytes_read_current = 0;
  do {
    RUN_NO_INTR(bytes_read_current = read(socket, data + bytes_read, length - bytes_read));
    bytes_read_current = read(socket, data + bytes_read, length - bytes_read);
    bytes_read += bytes_read_current;
  } while (length > bytes_read && bytes_read_current > 0);
  return bytes_read;