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

Commit 29d54149 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "installd: Wait indefinitely for the subprocess if pidfd_open fails."

parents ec0d68e9 501af5a8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1182,8 +1182,8 @@ static int wait_child(pid_t pid) {
int wait_child_with_timeout(pid_t pid, int timeout_ms) {
    int pidfd = pidfd_open(pid, /*flags=*/0);
    if (pidfd < 0) {
        PLOG(ERROR) << "pidfd_open failed for pid " << pid;
        kill(pid, SIGKILL);
        PLOG(ERROR) << "pidfd_open failed for pid " << pid
                    << ", waiting for child process without timeout";
        return wait_child(pid);
    }