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

Commit d18678f8 authored by Mike Lockwood's avatar Mike Lockwood
Browse files

init: Handle EINTR in handle_property_set_fd()



Change-Id: I5a6f1791eaf11e98b1d81697112d78c99822fba5
Signed-off-by: default avatarMike Lockwood <lockwood@android.com>
parent fb9134e3
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -374,11 +374,11 @@ void handle_property_set_fd()
        return;
    }

    r = recv(s, &msg, sizeof(msg), 0);
    r = TEMP_FAILURE_RETRY(recv(s, &msg, sizeof(msg), 0));
    if(r != sizeof(prop_msg)) {
        ERROR("sys_prop: mis-match msg size recieved: %d expected: %d errno: %d\n",
              r, sizeof(prop_msg), errno);
        close(s);
        ERROR("sys_prop: mis-match msg size recieved: %d expected: %d\n",
              r, sizeof(prop_msg));
        return;
    }