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

Commit 754d8e8b authored by Yifan Hong's avatar Yifan Hong Committed by Automerger Merge Worker
Browse files

Merge "lshal: exhaust pipe before closing." am: abecf2e9 am: 114ee970

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

Change-Id: I711abc6d5e9e9cab688d354a973e96338e50e610
parents 3dc5ef4d 114ee970
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -82,6 +82,7 @@ void PipeRelay::thread(unique_fd rfd, unique_fd rfdTrigger, std::ostream* out,
                continue;
                continue;
            }
            }
            out->write(buffer, n);
            out->write(buffer, n);
            continue;
        }
        }
        if (pfd[0].revents & POLLHUP) {
        if (pfd[0].revents & POLLHUP) {
            break;
            break;