From 254e1db96951be9b74e681e6f6bde4df9f2b342c Mon Sep 17 00:00:00 2001 From: The412Banner Date: Fri, 2 Oct 2026 16:14:31 -0400 Subject: [PATCH] bannerlator-steam-x64: BL_FEXSERVER_LOG for pid-tagged FEX logs A diagnostic: FEX's file log is opened without O_APPEND, so each process overwrites the last. Through a foreground FEXServer every line carries the pid and tid it came from. --- tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 index 992f7d44a..87a1a48a3 100755 --- a/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 +++ b/tools/linuxfs/overlay/usr/local/bin/bannerlator-steam-x64 @@ -141,6 +141,12 @@ export FEX_ROOTFS=$ROOTFS # every x86 library lookup then falls through to the arm64 guest. Stop it, so the next FEX # starts one with this rootfs. /usr/local/bin/FEXServer -k >/dev/null 2>&1 || true +# BL_FEXSERVER_LOG: a FEXServer of our own in the foreground, logging there - every FEX process that +# logs to "server" (FEX_OUTPUTLOG, or an AppConfig) then has its lines tagged with its pid. +if [ -n "${BL_FEXSERVER_LOG:-}" ]; then + "$(dirname "${BL_FEX:-/usr/local/bin/FEX}")/FEXServer" -f -p 600 >"$BL_FEXSERVER_LOG" 2>&1 & + sleep 1 +fi export STEAM_EXTRA_COMPAT_TOOLS_PATHS= # What steam.sh sets up before it runs the client, for the x86 tree. mkdir -p "$X64_HOME/.steam"