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

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

Merge "Fix EINTR handling" am: 52f47542 am: f7a6e155 am: 3f14c070 am: 5641aaa1

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

Change-Id: Ia44a8a7856bb59c3bab59f42e6d1b075fab028ff
parents 4ba4f224 5641aaa1
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -82,10 +82,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;
            }