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

Commit 5641aaa1 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

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

Change-Id: I53052881c1c16ccc5ce056d97ff44c5f09dc8ed5
parents 2a2c8895 3f14c070
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;
            }