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

Commit f7a6e155 authored by Keith Mok's avatar Keith Mok Committed by Automerger Merge Worker
Browse files

Merge "Fix EINTR handling" am: 52f47542

Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/1891458

Change-Id: I225b85261cfc9cfab524428bc204105c273d470a
parents 77385c96 52f47542
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -73,10 +73,8 @@ int main(int argc __unused, char **argv)
        IPCThreadState::self()->joinThreadPool();
        for (;;) {
            siginfo_t info;
            int ret = waitid(P_PID, childPid, &info, WEXITED | WSTOPPED | WCONTINUED);
            if (ret == EINTR) {
                continue;
            }
            int ret = TEMP_FAILURE_RETRY(waitid(P_PID, childPid, &info,
                                                WEXITED | WSTOPPED | WCONTINUED));
            if (ret < 0) {
                break;
            }