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

Commit 52f47542 authored by Keith Mok's avatar Keith Mok Committed by Gerrit Code Review
Browse files

Merge "Fix EINTR handling"

parents 853afb7d 7b3d5c36
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;
            }