From 06dad59dbdd7ea9fbfec82f198ad88cc1219cc64 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Thu, 24 Sep 2026 00:51:13 -0400 Subject: [PATCH] [MG_Remote] (P12): the in-process pin line names the pin it records - MOBILEGL_BACKEND_TYPE when the environment set it, the first session's otherwise --- MobileGL/MG_Remote/Server/ServerMain.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/MobileGL/MG_Remote/Server/ServerMain.cpp b/MobileGL/MG_Remote/Server/ServerMain.cpp index b2776dfb..951887aa 100644 --- a/MobileGL/MG_Remote/Server/ServerMain.cpp +++ b/MobileGL/MG_Remote/Server/ServerMain.cpp @@ -462,9 +462,12 @@ int RunSession(std::unique_ptr control, std::vector(backend), std::memory_order_acq_rel)) { + // Which pin it is, said as it is: the environment's (the display Activity's `backend` + // extra, already enforced by the refusal above) or the first session's. WireLogError("MG_Remote server: pid=%d in-process display server pinned backend type %u for the " - "process lifetime (the first session's; MOBILEGL_BACKEND_TYPE unset)", - selfPid, static_cast(backend)); + "process lifetime (%s)", + selfPid, static_cast(backend), + pinned && *pinned ? "MOBILEGL_BACKEND_TYPE" : "the first session's; MOBILEGL_BACKEND_TYPE unset"); pin = static_cast(backend); } if (pin != static_cast(backend)) {