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.
This commit is contained in:
The412Banner committed 2026-10-02 16:14:31 -04:00
1 parent 34e7191e02
commit 254e1db969
1 file changed
+6
@@ -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"