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

Commit f2e316ac authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: RPC avoid FdTrigger shutdown race" am: 13ba6f3c

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

Change-Id: I5c31e71b6da92233a86e7dfaea89fddba4e119f7
parents ebe76514 13ba6f3c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -205,8 +205,11 @@ bool RpcServer::shutdown() {
    }

    mShutdownTrigger->trigger();

    for (auto& [id, session] : mSessions) {
        (void)id;
        // server lock is a more general lock
        std::lock_guard<std::mutex> _lSession(session->mMutex);
        session->mShutdownTrigger->trigger();
    }