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

Commit 884f98f1 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "installd: Wait indefinitely for the subprocess if pidfd_open fails." am: 29d54149 am: 7a776b5f

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2148827



Change-Id: Iaa1f3f82a32f6c6a1177bb339f12d643d12d5849
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents db0c9ad0 7a776b5f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1184,8 +1184,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);
    }